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

[PATCH] git-gui: use --exclude-standard to check for untracked files

From
Stefan Naewe <stefan.naewe@googlemail.com>
Date
Nov 17, 2010, 15:13 UTC
Message-ID
<1290006804-9142-1-git-send-email-stefan.naewe@googlemail.com>

This fixes git gui failing to display untracked files if core.excludesfile is set to '~/.gitexcludes'.

Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>
---
 git-gui/git-gui.sh |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
index 4617f29..7121526 100755
--- a/git-gui/git-gui.sh
+++ b/git-gui/git-gui.sh
@@ -1428,14 +1428,7 @@ proc rescan_stage2 {fd after} {
 		close $fd
 	}
 
-	set ls_others [list --exclude-per-directory=.gitignore]
-	if {[have_info_exclude]} {
-		lappend ls_others "--exclude-from=[gitdir info exclude]"
-	}
-	set user_exclude [get_config core.excludesfile]
-	if {$user_exclude ne {} && [file readable $user_exclude]} {
-		lappend ls_others "--exclude-from=$user_exclude"
-	}
+	set ls_others [list --exclude-standard]
 
 	set buf_rdi {}
 	set buf_rdf {}
-- 
1.7.3.2
Next: Stefan Näwe
Message 1 of 2 in “git-gui: use --exclude-standard to check for untracked files”
  1. git-gui: use --exclude-standard to check for untracked filesStefan Naewe, Nov 17, 2010
  2. Stefan NäweNov 29, 2010

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.