diff options
| author | Eli Zaretskii | 2024-02-27 15:11:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-02-27 15:11:58 +0200 |
| commit | 647cecc853e53a3be0bb2cf5328cd19e677217c9 (patch) | |
| tree | 8d0ab0f13105f0c300cad10ed59f5b5e14f35ab0 | |
| parent | 383ccf6d51fd7af65dbcc1ce159a03369a48d27f (diff) | |
| download | emacs-647cecc853e53a3be0bb2cf5328cd19e677217c9.tar.gz emacs-647cecc853e53a3be0bb2cf5328cd19e677217c9.zip | |
; * lisp/vc/vc.el (vc-clone): Fix wording of doc string.
| -rw-r--r-- | lisp/vc/vc.el | 15 |
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. |
| 3680 | If successful, returns the string with the directory of the | 3680 | If successful, return the string with the directory of the checkout; |
| 3681 | checkout. If BACKEND is nil, iterate through every known backend | 3681 | otherwise return nil. |
| 3682 | in `vc-handled-backends' until one succeeds. If REV is non-nil, | 3682 | REMOTE should be a string, the URL of the remote repository or the name |
| 3683 | it indicates a specific revision to check out." | 3683 | of a directory (if the repository is local). |
| 3684 | If DIRECTORY is nil or omitted, it defaults to `default-directory'. | ||
| 3685 | If BACKEND is nil or omitted, the function iterates through every known | ||
| 3686 | backend in `vc-handled-backends' until one succeeds to clone REMOTE. | ||
| 3687 | If REV is non-nil, it indicates a specific revision to check out after | ||
| 3688 | cloning; 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 |