git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: しらいしななこ <nanako3@bluebottle.com>
Cc: Alex Riesen <raa.lkml@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] git init: activate rerere by default
Date: Fri, 6 Jul 2007 13:03:31 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0707061303260.4093@racer.site> (raw)
In-Reply-To: <200707061112.l66BCb6w017186@mi1.bluebottle.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1195 bytes --]

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

       reply	other threads:[~2007-07-06 12:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200707061112.l66BCb6w017186@mi1.bluebottle.com>
2007-07-06 12:03 ` Johannes Schindelin [this message]
2007-07-05 12:16 [PATCH] git init: activate rerere by default Johannes Schindelin
2007-07-05 13:10 ` Alex Riesen
2007-07-05 16:46   ` Junio C Hamano
2007-07-05 17:15     ` Johannes Schindelin
2007-07-05 18:53       ` Junio C Hamano
2007-07-05 19:22         ` Johannes Schindelin
2007-07-05 21:40           ` Alex Riesen
2007-07-05 22:29             ` Johannes Schindelin
2007-07-06  5:12           ` Junio C Hamano
2007-07-06 12:03             ` Johannes Schindelin
2007-07-06 11:12           ` しらいしななこ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0707061303260.4093@racer.site \
    --to=johannes.schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=nanako3@bluebottle.com \
    --cc=raa.lkml@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).