Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] git init: activate rerere by default

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:19

Hi,

On Fri, 6 Jul 2007, しらいしななこ wrote:
I am sorry, but I can't understand how [git rerere] works and how it is 
useful, after reading the manual page of git-rerere three times.  Are 
there "rerere tutorial for stupid newbies" document somewhere?  I 
earlier created .git/rr-cache folder but I have not seen anything 
interesting happened in my repository.
There is no tutorial. In fact, it should help your workflow seemlessly.

Suppose that you rebase a lot, on top of an upstream who has conflicting 
changes, and refuses (at least for a long time) to merge your work.

What you usually do is work out the conflicts over and over again, often 
identically. Basically for many conflicts (but not necessarily all!), you 
say: "Yes, I have seen that. My version is better."

When rerere is enabled, it records the conflicting hunks (i.e. the parts 
between <<<<<<< ... ======= ... >>>>>>>) together with how you resolved 
it, and next time it sees the same conflicting hunks, it automatically 
applies your resolution.

You should still inspect if it makes sense, and therefore the merge will 
still fail, even if all conflicts were automatically resolved.

Hth,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help