git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Naewe <stefan.naewe@googlemail.com>
To: gitster@pobox.com, git@vger.kernel.org
Cc: Stefan Naewe <stefan.naewe@googlemail.com>
Subject: [PATCH] git-gui: use --exclude-standard to check for untracked files
Date: Wed, 17 Nov 2010 16:13:24 +0100	[thread overview]
Message-ID: <1290006804-9142-1-git-send-email-stefan.naewe@googlemail.com> (raw)

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

             reply	other threads:[~2010-11-17 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17 15:13 Stefan Naewe [this message]
     [not found] ` <8739qxglfb.fsf@fox.patthoyts.tk>
2010-11-29 13:33   ` [PATCH] git-gui: use --exclude-standard to check for untracked files Stefan Näwe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1290006804-9142-1-git-send-email-stefan.naewe@googlemail.com \
    --to=stefan.naewe@googlemail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).