Skip to content

Commit 0ef81df

Browse files
committed
✨ gitignore templates now includes .gut
It's very annoying to commit the .gut file (used for profile management) To fix this, the file is now included into the .gitignore
1 parent 82a335f commit 0ef81df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/controller/ignore.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ func Ignore(cmd *cobra.Command, args []string) {
181181
}
182182
template := selectGitignoreTemplate(templates)
183183
gitignoreTemplateContent := splitStringByNewLine(template.contents)
184+
185+
// Add .gut to the gitignore template
186+
gitignoreTemplateContent = append(gitignoreTemplateContent, ".gut")
187+
184188
// Get the difference between the local .gitignore and the gitignore template
185189
diff := Difference(gitignoreContent, gitignoreTemplateContent)
186190
// Append the difference to the local .gitignore

0 commit comments

Comments
 (0)