commit 55091167c3506eda81107b6315018b82cb8a75eb from: Omar Polo date: Sat Dec 05 12:43:20 2020 UTC implement vc-got-find-ignore-file This is optional, but with this in place `project-find-file' works as intended. Also, should we support also .cvsignore? 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"))