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 <mlevedahl@gmail.com>
Mark Levedahl committed
Apr 5, 2025 at 10:18 UTC
dd7eb2d0370e0b610bcc05ab0843523c61b64c93
1 file changed
+1
-12
git-gui.sh
+1
-12
@@ -1536,18 +1536,7 @@ proc rescan_stage2 {fd after} {
1536
close $fd
1537
}
1538
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]
1540
1541
set buf_rdi {}
1542
set buf_rdf {}