git-gui: Honor core.excludesfile when listing extra files
Recent git versions have a git-status that honors the core.excludesfile configuration option when it reports on untracked files. Unfortunately I missed the introduction of this configuration option in the core porcelain implementation, so it was not reflected here in git-gui. Found and reported by Lars Noschinski <lars@public.noschinski.de>. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jul 29, 2007 at 03:22 UTC
94a4dd9bfda79a226f8dd57fd20c39c6603ec194
1 file changed
+4
git-gui.sh
+4
@@ -872,6 +872,10 @@ proc rescan_stage2 {fd after} {
872
if {[file readable $info_exclude]} {
873
lappend ls_others "--exclude-from=$info_exclude"
874
}
875
+ set user_exclude [get_config core.excludesfile]
876
+ if {$user_exclude ne {} && [file readable $user_exclude]} {
877
+ lappend ls_others "--exclude-from=$user_exclude"
878
+ }
879
880
set buf_rdi {}
881
set buf_rdf {}