From: Junio C Hamano <gitster@pobox.com>
To: David Kilzer <ddkilzer@kilzer.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] rebase -i -p: use rerere to resolve conflicts if enabled
Date: Sat, 16 Jun 2012 22:49:39 -0700 [thread overview]
Message-ID: <7vmx427aj0.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: 76A6615B-5758-4D67-A556-2EE131FF7B20@kilzer.net
David Kilzer <ddkilzer@kilzer.net> writes:
> On Jun 15, 2012, at 10:19 PM, Junio C Hamano wrote:
>
>> I do not use the configuration variable myself, and I didn't check
>> the code, but if you had rerere.autoupdate set, doesn't "git merge"
>> in the codepath you are touching (or anywhere for that matter)
>> already blindly take the replayed resolution and commit the result?
>
> No, it does not. That is what I originally expected to happen
> when I used "git rebase -i -p" through a merge with conflicts, but
> it currently does not behave this way.
After looking at what is done in t/t4200-rerere.sh, I think "git
merge" (or anything that use --rerere-autoupdate, that is) is meant
to exit with an error code after allowing rerere to add the result
of replayed resolution to the index, so that the user can deal with
any remaining paths that may be still in conflict.
Are you sure that the autoresolved paths are not "git add"ed when
you have rerere.autoupdate set by "git merge" in "git rebase -i/-p"?
Or are you only talking about the error exit from "git merge" that
would cause "git rebase -i" to stop and give control back to the end
user?
I suspect that the latter behaviour to stop "rebase" in the middle
is in line with the spirit of --rerere-autoupdate, and it is not
likely that we would want to change it.
next prev parent reply other threads:[~2012-06-17 5:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 14:17 [PATCH] rebase -i -p: use rerere to resolve conflicts if enabled David D. Kilzer
2012-06-15 15:52 ` Junio C Hamano
2012-06-16 4:08 ` David Kilzer
2012-06-16 5:19 ` Junio C Hamano
2012-06-17 3:58 ` David Kilzer
2012-06-17 5:49 ` Junio C Hamano [this message]
2012-06-17 13:46 ` David Kilzer
2012-06-17 18:30 ` Johannes Sixt
2012-06-17 21:30 ` David Kilzer
2012-06-18 19:06 ` Johannes Sixt
2012-06-17 22:00 ` Junio C Hamano
2012-06-17 22:12 ` Junio C Hamano
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=7vmx427aj0.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=ddkilzer@kilzer.net \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.