aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_status.go
diff options
context:
space:
mode:
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