commit 2552a6c780bf04d324a38193d49329d42e8f75e1 from: Omar Polo date: Wed Aug 11 16:28:48 2021 UTC 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. commit - 09d593791051febee8552638ed57d57fe026bdb0 commit + 2552a6c780bf04d324a38193d49329d42e8f75e1 blob - 718b233d29e3f9e0212631668ebf78db5bf313c6 blob + ae83a7e40b403938543ebcc5cee8c56af0832618 --- vc-got.el +++ 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 @@ -587,11 +588,6 @@ FILES is nil, consider all the files in DIR." (with-current-buffer buffer (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. @@ -838,6 +834,11 @@ true, NAME should create a new branch otherwise it wil ;; 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