git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
XMXavier Maillard <zedek@gnu.org>
Date
Mar 3, 2007, 10:18 UTC
Message-ID
<15268.1172917083@localhost>
Add .git to the list of extensions to be ignored
Signed-off-by: Xavier Maillard <zedek@gnu.org>
---
 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)
-- 
1.5.0
Next: Junio C Hamano
Message 1 of 4 in “.git directory should be ignored”
  1. 1/7 .git directory should be ignoredXavier Maillard, Mar 3, 2007
  2. Junio C HamanoMar 3, 2007
  3. Alexandre JulliardMar 4, 2007
  4. Xavier MaillardMar 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.