scottgonzalez / pretty-diff

colorized HTML diffs
MIT License
218 stars 27 forks source link

Honor --cc diffs as well #23

Closed paulirish closed 8 years ago

paulirish commented 8 years ago

as mentioned in #20,

Any merge conflict will end up with diff --cc instead of diff --git.


I was thinking of using a shortformat style to pick up the filenames, like so…

/chromium/src/third_party/WebKit/Source/devtools on heads/master ⁂
$ git diff --stat
 Source/devtools/front_end/timeline/TimelinePanel.js | Unmerged
 Source/devtools/front_end/timeline/TimelinePanel.js |  5 +++++
 Source/devtools/front_end/ui/Dialog.js              | Unmerged
 Source/devtools/front_end/ui/Dialog.js              | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+)

~/chromium/src/third_party/WebKit/Source/devtools on heads/master ⁂
$ git diff --numstat
0       0       Source/devtools/front_end/timeline/TimelinePanel.js
5       0       Source/devtools/front_end/timeline/TimelinePanel.js
0       0       Source/devtools/front_end/ui/Dialog.js
20      0       Source/devtools/front_end/ui/Dialog.js

... but that doesn't really work with the text splitting thing you got going.


anyway this works! fixes #20

paulirish commented 8 years ago

regex updated.

scottgonzalez commented 8 years ago

This is now available in v0.4.0.

Thanks!