emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got 5509116 018/145: implement vc-got-find-ignore-fi


From: ELPA Syncer
Subject: [elpa] externals/vc-got 5509116 018/145: implement vc-got-find-ignore-file
Date: Thu, 9 Sep 2021 15:58:25 -0400 (EDT)

branch: externals/vc-got
commit 55091167c3506eda81107b6315018b82cb8a75eb
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    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?
---
 vc-got.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/vc-got.el b/vc-got.el
index ced238f..134d469 100644
--- a/vc-got.el
+++ b/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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]