]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: git ls-files knows --exclude-standard
authorMark Levedahl <mlevedahl@gmail.com>
Sat, 5 Apr 2025 14:18:06 +0000 (10:18 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Fri, 18 Jul 2025 20:33:31 +0000 (16:33 -0400)
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>
git-gui.sh

index d896382b8cefff717dc9fa145a033d623b91a6a7..d5c8d2dc8535028bc9b369f193cd95151c98b584 100755 (executable)
@@ -1536,18 +1536,7 @@ proc rescan_stage2 {fd after} {
                close $fd
        }
 
-       if {[package vcompare $::_git_version 1.6.3] >= 0} {
-               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 ls_others [list --exclude-standard]
 
        set buf_rdi {}
        set buf_rdf {}