From: Neil Brown Date: Wed, 5 May 2010 07:06:53 +0000 (+1000) Subject: Write some notes about editting merges. X-Git-Tag: v0.9~78 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=cec867bf061ca977933e3215775d8446f22ddca5;p=wiggle.git Write some notes about editting merges. --- diff --git a/notes b/notes index e5922d2..4d11ab0 100644 --- a/notes +++ b/notes @@ -98,4 +98,37 @@ Speed: us aproxword for pdiff lineup.DONE return a lcsl when reading a patch and refine that rather than computing from scratch. -FIXME: pdiff should pick best bit, and rediff the two sides. DONE \ No newline at end of file +FIXME: pdiff should pick best bit, and rediff the two sides. DONE + +--------------------------------- +Thoughts about editing a merge. + +When viewing a merge we might decide that: + + - a change is not wanted + - a conflict should be resolved for the original + - a conflict should be resolved for the new + + - some text needs to be edited in place + - a change should be applied against a different place in the original + + - These can apply to a single change, to a line, or to + a chunk + +We can achieve most of these by changing the merge result, +e.g. Changed to Unchanged or Conflict to one of the above. + +Moving a chunk will require shuffling the merger array. + +Replacing text is probably best done with a special merge type?? + +Selecting the region to act on is awkward. Need to track 'current' +merge point for cursor. Maybe insert $$ at other end?? + +How about: + press E + current change is surrounded with '$' + cursor movement can extend the range + K to keep original + C to change + R to retype