|
From: | Tom Rodriguez |
Subject: | Re: unified diff bug or intended behaviour? |
Date: | Thu, 30 Oct 2003 11:31:05 -0800 |
User-agent: | Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 |
It might be nice if GNU diff had an option to select the file1 unchanged context instead of file0 though that seems like feature creep. I do like the --*-format= options as a way of providing configurable diff output, though it appears to me they don't seem to affect the unified diff format. Maybe extending the generalized formatting to the unified form would be sufficient and more general.
Anyway, thanks for your time. tom Paul Eggert wrote:
Tom Rodriguez <address@hidden> writes:This would be easy to fix by changing pr_unidiff_hunk to print from files[1] instead of files[0] for the unchanged part. Thanks!That would fix that particular case, but then it will break the apparent indentation when looking at hunks that contain "old" lines (i.e., lines from files[0]). I don't see an easy fix here.
[Prev in Thread] | Current Thread | [Next in Thread] |