| 1 |
package reporters |
| 2 |
|
| 3 |
type fileMerge struct{} |
| 4 |
|
| 5 |
// NewFileMergeReporter creates a new reporter for the Xcode filemerge diff tool. |
| 6 |
func NewFileMergeReporter() Reporter { |
| 7 |
return &fileMerge{} |
| 8 |
} |
| 9 |
|
| 10 |
func (s *fileMerge) Report(approved, received string) bool { |
| 11 |
xs := []string{"--nosplash", "-left", received, "-right", approved} |
| 12 |
programName := "/Applications/Xcode.app/Contents/Applications/FileMerge.app/Contents/MacOS/FileMerge" |
| 13 |
|
| 14 |
return launchProgram(programName, approved, xs...) |
| 15 |
} |