Skip to content

Commit

Permalink
Switch back to git rewrite for notes
Browse files Browse the repository at this point in the history
  • Loading branch information
kilpkonn committed May 29, 2021
1 parent f9af646 commit 28ab01d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,21 @@ var (
Command: "gtm commit --yes",
RE: regexp.MustCompile(`(?s)[/:a-zA-Z0-9$_=()"\.\|\-\\ ]*gtm(.exe"|)\s+commit\s+--yes\.*`),
},
"post-rewrite": {
Exe: "gtm",
Command: "gtm rewrite",
RE: regexp.MustCompile(
`(?s)[/:a-zA-Z0-9$_=()"\.\|\-\\ ]*gtm\s+rewrite\.*`),
},
//"post-rewrite": {
// Exe: "gtm",
// Command: "gtm rewrite",
// RE: regexp.MustCompile(
// `(?s)[/:a-zA-Z0-9$_=()"\.\|\-\\ ]*gtm\s+rewrite\.*`),
//},
}
// GitConfig is map of git configuration settings
GitConfig = map[string]string{
"alias.pushgtm": "push origin refs/notes/gtm-data",
"alias.fetchgtm": "fetch origin refs/notes/gtm-data:refs/notes/gtm-data"}
"alias.pushgtm": "push origin refs/notes/gtm-data",
"alias.fetchgtm": "fetch origin refs/notes/gtm-data:refs/notes/gtm-data",
"notes.rewriteRef": "refs/notes/gtm-data",
"notes.rewriteMode": "concatenate",
"notes.rewrite.rebase": "true",
"notes.rewrite.amend": "true"}
// GitIgnore is file ignore to apply to git repo
GitIgnore = "/.gtm/"

Expand Down

0 comments on commit 28ab01d

Please sign in to comment.