(repoDir, path string)
| 23 | var multiNewline = regexp.MustCompile(`\n{3,}`) |
| 24 | |
| 25 | func resolveBackgroundFilePath(repoDir, path string) string { |
| 26 | if path == "" || filepath.IsAbs(path) { |
| 27 | return path |
| 28 | } |
| 29 | return filepath.Join(repoDir, path) |
| 30 | } |
| 31 | |
| 32 | // mergeBackground combines the inline --background value (or an auto-populated |
| 33 | // commit message) with the content read from --background-file, separated by a |
no outgoing calls