[darcs-users] Re: Re: the readability of darcs native change format (was: Re: SchwernLikesDarcs SchwernHatesDarcs)

Benedikt Schmidt beschmi at cloaked.de
Sun Mar 20 16:26:43 UTC 2005


On Sun, 20 Mar 2005 17:07:30 +0100, Tommy Pettersson wrote:

> On Sun, Mar 20, 2005 at 06:41:32AM +0100, Benedikt Schmidt wrote:
>> hunks. I'm working on some performance improvements to the diff code and
>> wondering if results mostly identical to gnu diff are ok. I got some diff
> 
> I have a wish: when I insert a new function I often get to
> record it as
> 
>  	bar(1);
> +	return 0;
> +}
> +
> +int
> +foo(int bar) {
> +	gaz(bar);
>  	return 0;
>  }
>  
>  int
>  bar(int oof) {
> 
> 
> but I would like it recorded as
> 
>  	bar(1);
>  	return 0;
>  }
> +
> +int
> +foo(int bar) {
> +	gaz(bar);
> +	return 0;
> +}
>  
>  int
>  bar(int oof) {
> 
> 
> Can you fix this?  :-)

The last step tries to shift the hunks towards the end of the file
so that case should be handled ok (the added empty line would
appear at the end).

Benedikt





More information about the darcs-users mailing list