Skip to content

saving and replaying multiple variants with rerere

Junio C Hamano git 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 0 repliesNew
  2. v211 patches 0 repliesSuperseded
  3. v17 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11rerere: split conflict ID furtherrerere.c rerere.h+58 -60 replies
2/11rerere: scan $GIT_DIR/rr-cache/$ID when instantiating a rerere_idrerere.c+29 -30 replies
3/11rerere: handle leftover rr-cache/$ID directory and postimage filesrerere.c t/t4200-rerere.sh+41 -180 replies
4/11rerere: delay the recording of preimagererere.c+25 -270 replies
5/11rerere: allow multiple variants to existrerere.c rerere.h+106 -220 replies
6/11t4200: rerere a merge with two identical conflictst/t4200-rerere.sh+74 -00 replies
7/11rerere: do use multiple variantsrerere.c t/t4200-rerere.sh+61 -390 replies
8/11rerere: gc and clearrerere.c t/t4200-rerere.sh+123 -450 replies
9/11rerere: move code related to "forget" togetherrerere.c+97 -970 replies
10/11rerere: split code to call ll_merge() furtherrerere.c+31 -160 replies
11/11rerere: adjust 'forget' to multi-variant world orderrerere.c t/t4200-rerere.sh+37 -10 replies

Reviews trailers per patch

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

Read the v3 thread

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
index 647ea6f..1a080e7 100755
@@ -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