Skip to content

Commit

Permalink
git-gui: Honor core.excludesfile when listing extra files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Jul 29, 2007
1 parent 360cc10 commit 94a4dd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 94a4dd9

Please sign in to comment.