[darcs-users] an interface for splitting hunks (was: Re: the readability of darcs native change format)

Mark Stosberg mark at summersault.com
Wed Mar 30 01:06:18 UTC 2005

On 2005-03-28, Ketil Malde <ketil.malde at bccs.uib.no> wrote:
> Would it be a good heuristic to try to break hunks at empty lines?

I would say "no" for the average case. I think it's common to add 10 or
20 more contiguous lines, for those to have some spaces in them, which
don't separate intuitive hunks. 

I think the real solution is an interface that allows the user to split
the hunks if they want to. I have a bug report this in the BTS. 

I just had a new idea, though. :) This is a brainstorm, so I'm not sure
I like it myself: 

The user could manually insert a special line into the text which means
"break the hunks here". It could be some token on a line by itself.
As part of the 'record' process, darcs would remove the marker forever
from the code and the repo. It would be a one way operation. Unrecording  
the patch wouldn't put it back. 



More information about the darcs-users mailing list