Skip to content

Commit dd7eb2d

Browse files
committed
git-gui: git ls-files knows --exclude-standard
git-gui includes code to implement ls-files for git versions prior to 1.63 that did not know --exclude-standard. But, git-gui now requires git version >= 2.36, so remove the obsolete code. Signed-off-by: Mark Levedahl <[email protected]>
1 parent 77f648e commit dd7eb2d

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

git-gui.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,18 +1536,7 @@ proc rescan_stage2 {fd after} {
15361536
close $fd
15371537
}
15381538

1539-
if {[package vcompare $::_git_version 1.6.3] >= 0} {
1540-
set ls_others [list --exclude-standard]
1541-
} else {
1542-
set ls_others [list --exclude-per-directory=.gitignore]
1543-
if {[have_info_exclude]} {
1544-
lappend ls_others "--exclude-from=[gitdir info exclude]"
1545-
}
1546-
set user_exclude [get_config core.excludesfile]
1547-
if {$user_exclude ne {} && [file readable $user_exclude]} {
1548-
lappend ls_others "--exclude-from=[file normalize $user_exclude]"
1549-
}
1550-
}
1539+
set ls_others [list --exclude-standard]
15511540

15521541
set buf_rdi {}
15531542
set buf_rdf {}

0 commit comments

Comments
 (0)