Is there a way to format a git diff (e.g. git diff HEAD^
or git diff origin/foo origin/bar
) in the format used by merge resolution?
For example, I have a patch which (in part) looks like
yield (
api.test('check the foos') + #
- api.properties(foos=[]) + #
api.frobozz(bar) + #
...
)
And I would like to see this section as
yield (
api.test('check the foos') + #
<<<<<<<<<<<<<<<<<<<<<< origin
api.properties(foos=[]) + #
=============================
>>>>>>>>>>>>>>>>>>>>>>>> HEAD
api.frobozz(bar) + #
...
)