branch: externals/vc-got
commit c0c9a33974fac7981ecdcf4ea709d269a25c930e
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>
docs improvement
---
vc-got.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vc-got.el b/vc-got.el
index 33c544a..0208d51 100644
--- a/vc-got.el
+++ b/vc-got.el
@@ -248,9 +248,7 @@ DIR-OR-FILE."
;; (message "got %s" res))))
(defun vc-got-working-revision (file)
- "Return the id of the last commit that touched the FILE.
-
-Return \"0\" for a file added but not yet committed."
+ "Return the id of the last commit that touched the FILE or \"0\" for a new
(but added) file."
(or
(with-temp-buffer
(when (vc-got--log 1 file)
@@ -294,6 +292,7 @@ Return \"0\" for a file added but not yet committed."
(apply #'vc-got--call "commit" "-m" comment files)))
(defun vc-got-find-revision (file rev buffer)
+ "Fill BUFFER with the content of FILE in the given revision REV."
(when-let (obj-id (assoc file (vc-got--tree rev file) #'string=))
(with-current-buffer buffer
(vc-got-with-worktree file