Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/7] .git directory should be ignored

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:58

Xavier Maillard [off-list ref] writes:
quoted hunk
Add .git to the list of extensions to be ignored

Signed-off-by: Xavier Maillard <redacted>
---
 contrib/emacs/vc-git.el |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/contrib/emacs/vc-git.el b/contrib/emacs/vc-git.el
index a2d3932..3d43ca0 100644
--- a/contrib/emacs/vc-git.el
+++ b/contrib/emacs/vc-git.el
@@ -149,4 +149,7 @@
 ;;    (and (looking-at "[0-9a-f]+")
 ;;         (buffer-substring (match-beginning 0) (match-end 0)))))
 
+;;;###autoload
+(add-to-list 'completion-ignored-extensions ".git/")
+
 (provide 'vc-git)
I am no Emacs vc expert to judge, but I wonder if it is kosher
to muck with that global variable from a vc backend.

The above does mirror what pcl-cvs does for "CVS/" but I notice
that vc-cvs.el does not do so, neither vc-rcs.el excludes
"RCS/".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help