aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2024-02-27 15:11:58 +0200
committerEli Zaretskii2024-02-27 15:11:58 +0200
commit647cecc853e53a3be0bb2cf5328cd19e677217c9 (patch)
tree8d0ab0f13105f0c300cad10ed59f5b5e14f35ab0
parent383ccf6d51fd7af65dbcc1ce159a03369a48d27f (diff)
downloademacs-647cecc853e53a3be0bb2cf5328cd19e677217c9.tar.gz
emacs-647cecc853e53a3be0bb2cf5328cd19e677217c9.zip
; * lisp/vc/vc.el (vc-clone): Fix wording of doc string.
-rw-r--r--lisp/vc/vc.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 549eae6e663..25540406b4e 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -3676,11 +3676,16 @@ to provide the `find-revision' operation instead."
3676 (vc-call-backend (vc-backend buffer-file-name) 'check-headers)) 3676 (vc-call-backend (vc-backend buffer-file-name) 'check-headers))
3677 3677
3678(defun vc-clone (remote &optional backend directory rev) 3678(defun vc-clone (remote &optional backend directory rev)
3679 "Use BACKEND to clone REMOTE into DIRECTORY. 3679 "Clone repository REMOTE using version-control BACKEND, into DIRECTORY.
3680If successful, returns the string with the directory of the 3680If successful, return the string with the directory of the checkout;
3681checkout. If BACKEND is nil, iterate through every known backend 3681otherwise return nil.
3682in `vc-handled-backends' until one succeeds. If REV is non-nil, 3682REMOTE should be a string, the URL of the remote repository or the name
3683it indicates a specific revision to check out." 3683of a directory (if the repository is local).
3684If DIRECTORY is nil or omitted, it defaults to `default-directory'.
3685If BACKEND is nil or omitted, the function iterates through every known
3686backend in `vc-handled-backends' until one succeeds to clone REMOTE.
3687If REV is non-nil, it indicates a specific revision to check out after
3688cloning; the syntax of REV depends on what BACKEND accepts."
3684 (unless directory 3689 (unless directory
3685 (setq directory default-directory)) 3690 (setq directory default-directory))
3686 (if backend 3691 (if backend