aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2025-04-05 10:18:06 -0400
committerMark Levedahl <mlevedahl@gmail.com>2025-07-18 16:33:31 -0400
commitdd7eb2d0370e0b610bcc05ab0843523c61b64c93 (patch)
treefc67894b47dd5d3d4d397cacc85b55c9f3087d10
parent77f648edb69dba164e2e32f33ab009fa33c3d9f1 (diff)
downloadgit-dd7eb2d0370e0b610bcc05ab0843523c61b64c93.tar.gz
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>
-rwxr-xr-xgit-gui.sh13
1 files changed, 1 insertions, 12 deletions
diff --git a/git-gui.sh b/git-gui.sh
index d896382b8c..d5c8d2dc85 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -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 {}