[darcs-users] hunk pattern recipe

Ganesh Sittampalam ganesh at earth.li
Mon Dec 5 18:39:46 UTC 2011


Hi,

On 03/12/2011 01:30, Maris, Rob wrote:
> Currently hunks are identified as blocks of text lines that are
> separated by at least one unmodified line. However, I'd want to create a
> sort of recipe on a per-repo basis that allows me to specify a sort of
> field separators that should be recognized by the hunk identification
> algorithm.
> 
> Example: I'd want to manage object library files (graphic objects,
> organized in libraries stored as ASCII text) through darcs. Darcs should
> only identify single hunks using specification in the user recipe. Goal:
> prevent the creation of too many hunks caused by alternating lines
> within an information entity that are modified, and lines in between
> that are not modified.
> 
> Is such a hunk recipe feature anyway present in current darcs version?

Such a feature is definitely not present. However, it wouldn't be too
intrusive to add, as it only affects the way in which hunks are
recorded, and not patch representation or handling in general.

One thing that's been mentioned before is the use of "patience diff":
http://bramcohen.livejournal.com/73318.html
Would that help in your case?

Cheers,

Ganesh


More information about the darcs-users mailing list