Skip to content

Undoing conflict resolution

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9builtin-merge.c: use standard active_cache macrosbuiltin-merge.c+2 -30 replies
2/9resolve-undo: record resolved conflicts in a new index extension sectionMakefile builtin-checkout.c builtin-merge.c +5 more+160 -10 replies
3/9resolve-undo: basic testsbuiltin-ls-files.c t/t2030-unresolve-info.sh+130 -10 replies
4/9resolve-undo: allow plumbing to clear the informationbuiltin-update-index.c t/t2030-unresolve-info.sh+17 -00 replies
5/9resolve-undo: "checkout -m path" uses resolve-undo informationbuiltin-checkout.c cache.h resolve-undo.c +2 more+77 -00 replies
6/9resolve-undo: teach "update-index --unresolve" to use resolve-undo infobuiltin-update-index.c cache.h t/t2030-unresolve-info.sh+20 -10 replies
7/9rerere: remove silly 1024-byte line limitrerere.c+10 -90 replies
8/9rerere: refactor rerere logic to make it independent from I/Orerere.c+82 -350 replies
9/9rerere forget path: forget recorded resolutionbuiltin-rerere.c rerere.c rerere.h +1 more+152 -011 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Undoing conflict resolution

This series resurrects the topic we discussed later November.

I wrote a bit about this in http://gitster.livejournal.com/43665.html but as usual with my patches, they do come with minimum set of tests but it contains no documentation updates. The user visible changes are:

- ls-files has a new option primarily for debugging;
- update-index has a new option --clear-resolve-undo;
- rerere has a new subcommand forget.

Junio C Hamano (9):
builtin-merge.c: use standard active_cache macros
resolve-undo: record resolved conflicts in a new index extension
section
resolve-undo: basic tests
resolve-undo: allow plumbing to clear the information
resolve-undo: "checkout -m path" uses resolve-undo information
resolve-undo: teach "update-index --unresolve" to use resolve-undo
info
rerere: remove silly 1024-byte line limit
rerere: refactor rerere logic to make it independent from I/O rerere forget path: forget recorded resolution

 Makefile                  |    2 +
 builtin-checkout.c        |    6 +
 builtin-ls-files.c        |   43 +++++++-
 builtin-merge.c           |    9 +-
 builtin-read-tree.c       |    2 +
 builtin-rerere.c          |    2 +
 builtin-update-index.c    |   18 +++-
 cache.h                   |    4 +
 read-cache.c              |   18 +++
 rerere.c                  |  259 +++++++++++++++++++++++++++++++++++++-------
 rerere.h                  |    1 +
 resolve-undo.c            |  176 ++++++++++++++++++++++++++++++
 resolve-undo.h            |   16 +++
 t/t2030-unresolve-info.sh |  140 ++++++++++++++++++++++++
 14 files changed, 648 insertions(+), 48 deletions(-)
 create mode 100644 resolve-undo.c
 create mode 100644 resolve-undo.h
 create mode 100755 t/t2030-unresolve-info.sh