mirror of
https://github.com/git/git.git
synced 2024-11-25 10:54:00 +08:00
git-gui: use --exclude-standard to check for untracked files
This fixes git-gui failing to display untracked files that are listed if core.excludefiles is set to ~/.gitexcludes [PT: added expansion of core.excludesfile value by tcl] Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
parent
88b21c2a40
commit
673eb4a01f
18
git-gui.sh
18
git-gui.sh
@ -1448,13 +1448,17 @@ 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"
|
||||
if {[package vsatisfies $::_git_version 1.6.3]} {
|
||||
set ls_others [list --exclude-standard]
|
||||
} else {
|
||||
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=[file normalize $user_exclude]"
|
||||
}
|
||||
}
|
||||
|
||||
set buf_rdi {}
|
||||
|
Loading…
Reference in New Issue
Block a user