aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_status.go
diff options
context:
space:
mode:
authorAlan D. Cabrera <adc@toolazydogs.com>2018-05-10 21:47:25 -0700
committerMáximo Cuadros <mcuadros@gmail.com>2018-05-11 06:47:25 +0200
commite63b032e91ce35e0ecd5f27d43be655625e8af36 (patch)
tree2270ae7d5e88e5443bfb486432bf04d1642170d6 /worktree_status.go
parent47417ae81f81e520b003fbe3166c5842d5acce91 (diff)
downloadgo-git-e63b032e91ce35e0ecd5f27d43be655625e8af36.tar.gz
Worktree: Provide ability to add excludes (#825)
Worktree: Provide ability to add excludes
Diffstat (limited to 'worktree_status.go')
-rw-r--r--worktree_status.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/worktree_status.go b/worktree_status.go
index b5f2381..0e113d0 100644
--- a/worktree_status.go
+++ b/worktree_status.go
@@ -145,6 +145,9 @@ func (w *Worktree) excludeIgnoredChanges(changes merkletrie.Changes) merkletrie.
if err != nil || len(patterns) == 0 {
return changes
}
+
+ patterns = append(patterns, w.Excludes...)
+
m := gitignore.NewMatcher(patterns)
var res merkletrie.Changes