Function: forge-add-some-repository
forge-add-some-repository is an interactive and natively compiled
function defined in forge-commands.el.
Signature
(forge-add-some-repository URL)
Documentation
Read a repository and add it to the database.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-commands.el
(defun forge-add-some-repository (url)
"Read a repository and add it to the database."
(interactive
(let (ret url)
(while (not ret)
(setq url (magit-read-string-ns
"Add repository to database (url, owner/name, or name)" url))
(unless (string-match-p "\\(://\\|@\\)" url)
(setq url (magit-clone--name-to-url url)))
(cond ((forge-get-repository url nil :tracked?)
(message "%s is already being tracked locally"
(propertize url 'face 'bold))
(sit-for 3))
((not (forge-get-repository url nil :valid?))
(message "%s does not exist, was renamed or is inaccessible"
(propertize url 'face 'bold))
(sit-for 3))
((setq ret url))))
(list ret)))
(forge-add-repository url))