有没有办法以合并解析使用的格式格式化 git diff(例如git diff HEAD^
或)?git diff origin/foo origin/bar
例如,我有一个(部分)看起来像的补丁
yield (
api.test('check the foos') + #
- api.properties(foos=[]) + #
api.frobozz(bar) + #
...
)
我想把这部分看作
yield (
api.test('check the foos') + #
<<<<<<<<<<<<<<<<<<<<<< origin
api.properties(foos=[]) + #
=============================
>>>>>>>>>>>>>>>>>>>>>>>> HEAD
api.frobozz(bar) + #
...
)