From e63b032e91ce35e0ecd5f27d43be655625e8af36 Mon Sep 17 00:00:00 2001 From: "Alan D. Cabrera" Date: Thu, 10 May 2018 21:47:25 -0700 Subject: Worktree: Provide ability to add excludes (#825) Worktree: Provide ability to add excludes --- worktree_status.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'worktree_status.go') 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 -- cgit