[darcs-users] Feedback on hunk splitting with Darcs 2.4 beta 1
Isaac Dupree
ml at isaac.cedarswampstudios.org
Sat Jan 16 19:42:14 UTC 2010
Jason Dagit wrote:
> Some ideas on improving it (sorry if these were already suggested, tried, or
> rejected):
> a) What about removing the '===' markers and using the same presentation
> that hunk patches use? Meaning, unchanged lines begin with a space, removed
> lines begin with -, and added lines begin with +. What I'm trying to
> achieve is that darcs has already trained people to recognize a particular
> format for hunks. Let's try to reuse what the user has already learned.
> Hopefully less learning means less effort to reach understanding.
If this is possible without changing the actual meaning of the UI, then
I think it might help me a lot. (Although it might be more inefficient,
interactively, if you both have to move a line AND have to change the
'-' to a '+' or something?)
Ganesh makes a good point that splitting something that consists of a
bunch of lines being replaced with a new, different bunch of lines might
not be as UI-trivial as adding "==SPLIT" lines in places. Hmm.
What if we proceed by examples? Use case: I modified several lines in a
row and I only want to record the change on one or two lines in the
middle. How do I do this?
FILE BEFORE:
a
b
c
FILE AFTER:
A
B
C
...and I want to record only the capitalization of 'b'.
If it is in fact possible to use the UI efficiently in all common cases,
then perhaps we just need a series of examples... although, considering
the wiki page which is only somewhat helpful now, I'm not sure.
-Isaac
More information about the darcs-users
mailing list