git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-gui: use --exclude-standard to check for untracked files
@ 2010-11-17 15:13 Stefan Naewe
       [not found] ` <8739qxglfb.fsf@fox.patthoyts.tk>
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Naewe @ 2010-11-17 15:13 UTC (permalink / raw)
  To: gitster, git; +Cc: Stefan Naewe

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-29 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 15:13 [PATCH] git-gui: use --exclude-standard to check for untracked files Stefan Naewe
     [not found] ` <8739qxglfb.fsf@fox.patthoyts.tk>
2010-11-29 13:33   ` Stefan Näwe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).