stageGitAttributesIfChanged stages .gitattributes if it was modified
()
| 394 | |
| 395 | // stageGitAttributesIfChanged stages .gitattributes if it was modified |
| 396 | func stageGitAttributesIfChanged() error { |
| 397 | gitRoot, err := gitutil.FindGitRoot() |
| 398 | if err != nil { |
| 399 | return err |
| 400 | } |
| 401 | gitAttributesPath := filepath.Join(gitRoot, ".gitattributes") |
| 402 | return exec.Command("git", "-C", gitRoot, "add", gitAttributesPath).Run() |
| 403 | } |
| 404 | |
| 405 | // ensureLogsGitignore ensures that .github/aw/logs/.gitignore exists to ignore log files |
| 406 | func ensureLogsGitignore() error { |