[darcs-users] darcs diff output
Trent W. Buck
trentbuck at gmail.com
Mon Jan 12 23:11:37 UTC 2009
On Mon, Jan 12, 2009 at 03:42:34PM +0200, Dan Pascu wrote:
> On Saturday 10 January 2009, Trent W. Buck wrote:
>> 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;
>
> I do not know why you assume that the empty line is added at the
> beginning
Mea culpa; I only referred to the transcript above and assumed it was
at the beginning.
> Now seriously, the line is added at the end, which makes it part of
> the context and much more harmful.
Agreed.
More information about the darcs-users
mailing list