From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-rev-list: proper lazy reachability
Date: Sat, 04 Jun 2005 08:01:25 -0700 [thread overview]
Message-ID: <7vekbigo8q.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0505310813540.1876@ppc970.osdl.org> (Linus Torvalds's message of "Tue, 31 May 2005 08:23:47 -0700 (PDT)")
Linus, what do you think rev-list should do given HEADs from two
forks, like this?
JC git-rev-list JC LT ????
|
| LT
| |
\ /
|
|
|
The above is often the shape of my working repository. I pull
from you, commit a handful on top of your then-HEAD, and when I
am about ready to submit, I pull from you again to find your
HEAD advanced somewhat.
For patch-form submission, I need a list of my commits since I
forked from you. Also I tend to rebase to your head often,
instead of merging inside my working repository (which makes
later e-mail patch-form submission more work for me), so even
when I am not immediately submitting the changes I have in my
fork, I need that list to forward port my changes.
JIT currently uses this to get this list (as a workaround):
git-rev-list JC $(merge-base JC LT)
I am wondering if this "since they forked" is usually what the
user wants. If that is the case then it would be great if I did
not have to do the "merge-base" part outside.
Current "proper lazy reachability" version, btw, does something
very unexpected for my use pattern. If you have more than one
commits between the fork point and LT HEAD in the above picture,
everything from the beginning of time to JC is given, or
something silly like that.
next prev parent reply other threads:[~2005-06-04 14:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 1:58 git-rev-list: proper lazy reachability Linus Torvalds
2005-05-31 7:58 ` Jon Seymour
2005-05-31 14:35 ` Linus Torvalds
2005-05-31 15:13 ` Linus Torvalds
2005-06-01 0:14 ` Jon Seymour
2005-05-31 12:15 ` Paul Mackerras
2005-05-31 14:39 ` Linus Torvalds
2005-05-31 15:23 ` Linus Torvalds
2005-06-01 16:38 ` Matthias Urlichs
2005-06-04 15:01 ` Junio C Hamano [this message]
2005-06-04 15:09 ` Thomas Glanzmann
2005-06-04 15:42 ` Linus Torvalds
2005-06-04 15:51 ` Linus Torvalds
2005-06-04 19:30 ` Junio C Hamano
2005-06-04 19:46 ` Petr Baudis
2005-06-04 19:41 ` Junio C Hamano
-- strict thread matches above, loose matches on Subject: below --
2005-06-01 18:44 Marco Costalba
2005-06-01 19:02 Marco Costalba
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=7vekbigo8q.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.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