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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux