New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add context diff support #15
Comments
This is in my plan however not able to implement quickly, I will get back On Wednesday, March 13, 2013, yaccz wrote:
|
Could you describe what is expected use case for context diff? I want to understand how robust the parse need to be to evaluate the ROI as the fix is much difficult than I expected, the Hunk and DiffOps abstraction need refactor. |
I just noticed
|
@ymattw unidiff is not standardized, while context diff is in posix. So I expect posix compliant projects to prefer using context diffs, like postgresql. |
@myint Thanks for the info, that tool make things easier. |
I would be perfectly happy with just detecting a context diff and doing filterdiff --format=unified < context | cdiff in the background |
Tried
|
It looks like that is due to the trailing whitespace after the You can see that by generating a context diff from the unified diff on that same WIkipedia page.
|
@myint You rock! lines contain only a This tool seems installed on RHEL (at least on >= 5.6) and available in debian/ubuntu package repo, not sure other linux distros, it is also available on MacPorts. It most likely not installed by default, I am not sure invoking |
What do you expect when filterdiff does not exist? On Tuesday, March 19, 2013, yaccz wrote:
|
Maybe print out a message like "Context diff support depends on filterdiff". ( |
Sorry for late fix, too much occupied these days. I feel the fix isn't elegant, enhancement welcome. Document will be updated later. |
http://en.wikipedia.org/wiki/Diff#Context_format
The text was updated successfully, but these errors were encountered: