From: Shawn O. Pearce Date: Sun, 29 Jul 2007 07:22:27 +0000 (-0400) Subject: git-gui: Honor core.excludesfile when listing extra files X-Git-Tag: gitgui-0.8.0~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94a4dd9bfda79a226f8dd57fd20c39c6603ec194;p=git.git 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 . Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui.sh b/git-gui.sh index d7fad46e5..4e3b58cfd 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -872,6 +872,10 @@ proc rescan_stage2 {fd after} { if {[file readable $info_exclude]} { lappend ls_others "--exclude-from=$info_exclude" } + set user_exclude [get_config core.excludesfile] + if {$user_exclude ne {} && [file readable $user_exclude]} { + lappend ls_others "--exclude-from=$user_exclude" + } set buf_rdi {} set buf_rdf {}