Commit Diff


commit - 694534b48d699ecab2e671833fdaf60e752bd29b
commit + 55091167c3506eda81107b6315018b82cb8a75eb
blob - ced238f1aca8515ad534da51dbf3841d7f55ffc0
blob + 134d4694b6a6a228c39056c288adca145fb21c53
--- vc-got.el
+++ vc-got.el
@@ -394,6 +394,11 @@ DIR-OR-FILE."
       (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."
   (error "vc got: checkout not implemented"))