branch: externals/vc-got
commit 2552a6c780bf04d324a38193d49329d42e8f75e1
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>
mark find-ignore-file as done and move it to the right place
vc.el doesn't document find-ignore-file, but it's used in the default
`ignore' and `ignore-completion-table' functions.
---
vc-got.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/vc-got.el b/vc-got.el
index 718b233..ae83a7e 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -97,6 +97,7 @@
;; - root DONE
;; - ignore NOT IMPLEMENTED
;; - ignore-completion-table NOT IMPLEMENTED
+;; - find-ignore-file DONE
;; - previous-revision DONE
;; - next-revision DONE
;; - log-edit-mode NOT IMPLEMENTED
@@ -588,11 +589,6 @@ FILES is nil, consider all the files in DIR."
(vc-got-with-worktree file
(vc-got--cat rev obj-id)))))
-(defun vc-got-find-ignore-file (file)
- "Return the gitignore file that controls FILE."
- (expand-file-name ".gitignore"
- (vc-got-root file)))
-
(defun vc-got-checkout (_file &optional _rev)
"Checkout revision REV of FILE.
If REV is t, checkout from the head."
@@ -838,6 +834,11 @@ true, NAME should create a new branch otherwise it will
pop-up a
;; Miscellaneous
+(defun vc-got-find-ignore-file (file)
+ "Return the gitignore file that controls FILE."
+ (expand-file-name ".gitignore"
+ (vc-got-root file)))
+
(defun vc-got-previous-revision (file rev)
"Return the revision number that precedes REV for FILE, or nil if no such
revision exists."
(with-temp-buffer