[darcs-users] darcs diff output

Trent W. Buck trentbuck at gmail.com
Sat Jan 10 11:53:52 UTC 2009


Dan Pascu <dan at ag-projects.com> writes:

> I noticed that with darcs-2 when there is no change in the working
> tree, darcs diff still outputs an empty line. This was not happening
> in 1.0.9
>
> dawn:~/work/project$ darcs diff
> dawn:~/work/project$ darcs2 diff
>
> dawn:~/work/project$

This shouldn't be a problem, because patch(1) will ignore everything
before the first hunk (signified by a line beginning with three
minus-hyphens).  That "header" area is often used to hold a comment
explaining what the patch does; darcs does this if you do

    darcs diff -p .

However I can understand how annoying unwanted whitespace can be, so if
you want this regression fixed the best approach is to 1) report it to
bugs at darcs.net; 2) write a regression test for the tests/ directory; and
then 3) hack the code so the test passes.

Of course, you don't need to do all three steps by yourself.  But then
it'll only get dealt with when someone else has the inclination, time
and experience to do the remaining steps.



More information about the darcs-users mailing list