saving and replaying multiple variants with rerere
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest11 patches 0 repliesNew
- v211 patches 0 repliesSuperseded
- v17 patches 0 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | rerere: split conflict ID furtherrerere.c rerere.h | +58 | 0 replies | |
| 2/11 | rerere: scan $GIT_DIR/rr-cache/$ID when instantiating a rerere_idrerere.c | +29 | 0 replies | |
| 3/11 | rerere: handle leftover rr-cache/$ID directory and postimage filesrerere.c t/ | +41 | 0 replies | |
| 4/11 | rerere: delay the recording of preimagererere.c | +25 | 0 replies | |
| 5/11 | rerere: allow multiple variants to existrerere.c rerere.h | +106 | 0 replies | |
| 6/11 | t4200: rerere a merge with two identical conflictst/ | +74 | 0 replies | |
| 7/11 | rerere: do use multiple variantsrerere.c t/ | +61 | 0 replies | |
| 8/11 | rerere: gc and clearrerere.c t/ | +123 | 0 replies | |
| 9/11 | rerere: move code related to "forget" togetherrerere.c | +97 | 0 replies | |
| 10/11 | rerere: split code to call ll_merge() furtherrerere.c | +31 | 0 replies | |
| 11/11 | rerere: adjust 'forget' to multi-variant world orderrerere.c t/ | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 00/11] saving and replaying multiple variants with rerere
This adds only finishing touches compared to the previous one, which starts at the message this is a response to and is found at
http://thread.gmane.org/gmane.comp.version-control.git/290068.
Namely, the last patch is different in that it not just adjusts 'forget', but also has a new test for 'rerere forget'.
Junio C Hamano (11):
rerere: split conflict ID further
rerere: scan $GIT_DIR/rr-cache/$ID when instantiating a rerere_id
rerere: handle leftover rr-cache/$ID directory and postimage files
rerere: delay the recording of preimage
rerere: allow multiple variants to exist
t4200: rerere a merge with two identical conflicts
rerere: do use multiple variants
rerere: gc and clear
rerere: move code related to "forget" together
rerere: split code to call ll_merge() further
rerere: adjust 'forget' to multi-variant world order
rerere.c | 626 +++++++++++++++++++++++++++++++++++++----------------- rerere.h | 4 +- t/t4200-rerere.sh | 170 ++++++++++++++- 3 files changed, 604 insertions(+), 196 deletions(-)
Signature · 5 lines
2.8.1-273-ga2cd0f9 t/t4200-rerere.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
t/t4200-rerere.sh +12 -1
@@ -477,6 +477,7 @@ test_expect_success 'multiple identical conflicts' ' merge_conflict_resolve && # Check that rerere knows that file1 and file2 have conflicts + printf "%s\n" file1 file2 >expect && git ls-files -u | sed -e "s/^.* //" | sort -u >actual && test_cmp expect actual &&
@@ -535,7 +536,17 @@ test_expect_success 'multiple identical conflicts' ' test_cmp file1.expect file1 && test_cmp file2.expect file2 && - # Pretend again + # Forget resolution for file2 + git rerere forget file2 && + echo file2 >expect && + git rerere status >actual && + test_cmp expect actual && + count_pre_post 2 1 && + + # file2 already has correct resolution, so record it again + git rerere && + + # Pretend that the resolutions are old again find .git/rr-cache/ -type f | xargs test-chmtime -172800 && # Resolved entries have not expired yet