Skip to content

Commit 8822a03

Browse files
authored
feat(git): make diff exclusion results the same in different directories (#147)
1 parent c49c6ad commit 8822a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Command struct {
3131
func (c *Command) excludeFiles() []string {
3232
var excludedFiles []string
3333
for _, f := range c.excludeList {
34-
excludedFiles = append(excludedFiles, ":(exclude)"+f)
34+
excludedFiles = append(excludedFiles, ":(exclude,top)"+f)
3535
}
3636
return excludedFiles
3737
}

0 commit comments

Comments
 (0)