patch-ext icon indicating copy to clipboard operation
patch-ext copied to clipboard

Feature request: Unified Diff

Open lifenstein opened this issue 9 years ago • 6 comments

Would it be possible to provide the option to view unified diffs in addition to side-by-side?

lifenstein avatar Jan 18 '17 06:01 lifenstein

What do you mean "unified diffs"?

daviddengcn avatar Jan 18 '17 08:01 daviddengcn

https://en.wikipedia.org/wiki/Diff_utility#Unified_format

lifenstein avatar Jan 18 '17 10:01 lifenstein

Isn't this currently supported? if there's a bug of parsing some diffs, it'll help if you can provide the case. Thanks!

daviddengcn avatar Jan 18 '17 17:01 daviddengcn

The extension supports viewing patch files which are in the unified diff format, yes. But the view is changed to side-by-side from unified. The feature request is to enable coloured highlighting of the patch file, with no transformation. It's much clearer and easier to peruse when there's visual distinction (colour-coding) between the lines that have been added/removed/modified when viewing the patch file.

lifenstein avatar Jan 19 '17 00:01 lifenstein

oic, so just colorize the original file, right?

daviddengcn avatar Jan 19 '17 01:01 daviddengcn

Yes, that's right.

lifenstein avatar Jan 19 '17 04:01 lifenstein