From: Dave Abrahams <dave@boostpro.com>
To: git@vger.kernel.org
Subject: Re: Using Origin hashes to improve rebase behavior
Date: Mon, 21 Feb 2011 23:49:37 +0000 (UTC) [thread overview]
Message-ID: <loom.20110222T004926-60@post.gmane.org> (raw)
In-Reply-To: m21v3fvbix.fsf@hermes.luannocracy.com
Johan Herland <johan <at> herland.net> writes:
>
> On Friday 11 February 2011, skillzero <at> gmail.com wrote:
> > On Thu, Feb 10, 2011 at 1:13 PM, John Wiegley
> > <johnw <at> boostpro.com> wrote:
>
> > I don't know very much about how git really works so what I'm saying
> > may be dumb, but rather than record where a commit came from, would it
> > be reasonable for rebase to look at the patch-id for each change on
> > the topic branch after the merge base and automatically remove topic
> > branch commits that match that patch-id? So in your example, rebase
> > would check each topic branch commit against 3', d, e*, and f and see
> > that the 3' patch-id is the same as the topic branch 3 and remove
> > topic branch 3 before it gets to e*?
>
> I believe "git rebase" already does exactly what you describe [1].
I can imagine that we could make merges do something similar:
git merge <sources> :=
Attempt the merge as it works today
If there are conflicts
for s in <sources>
rebase s onto HEAD
if there are no conflicts
use the current tree as the result of
the merge (with the merge's heritage)
commit
else
reset to the conflicted merge state
prev parent reply other threads:[~2011-02-21 23:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 21:13 Using Origin hashes to improve rebase behavior John Wiegley
2011-02-10 22:16 ` Johan Herland
2011-02-10 22:54 ` Jeff King
2011-02-11 3:14 ` John Wiegley
2011-02-11 4:45 ` Jeff King
2011-02-11 5:26 ` John Wiegley
2011-02-12 14:36 ` Thomas Rast
2011-02-11 10:02 ` skillzero
2011-02-11 11:40 ` Johan Herland
2011-02-11 19:03 ` Jeff King
2011-02-11 19:32 ` Junio C Hamano
2011-02-11 19:45 ` Jeff King
2011-02-20 17:49 ` Enrico Weigelt
2011-02-21 23:49 ` Dave Abrahams [this message]
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=loom.20110222T004926-60@post.gmane.org \
--to=dave@boostpro.com \
--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 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).