From: Junio C Hamano <gitster@pobox.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>, git@vger.kernel.org
Subject: Re: Suggestion: make --left-right work with --merge
Date: Thu, 28 Feb 2008 23:32:40 -0800 [thread overview]
Message-ID: <7vprugdxpj.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <18374.39253.408961.634788@cargo.ozlabs.ibm.com> (Paul Mackerras's message of "Thu, 28 Feb 2008 22:21:57 +1100")
Paul Mackerras <paulus@samba.org> writes:
> Junio C Hamano writes:
>
>> Yeah, the option list is not maintained well for the last few
>> years and needs to be updated.
>
> Ah. OK. I am currently using git rev-parse in the gitk dev branch to
> determine what starting commits git log will use, so that when the
> user does an update, I can construct a git log command that will stop
> when it gets to any of those previous starting points. That way the
> second git log will only give me new stuff that has been added since
> the first git log.
Doesn't
git rev-parse --revs-only --no-flags "$@" | grep '^[0-9a-f]'
give you what you want?
Interesting.
* gitk has already done what the user asked once. E.g. "git
log next..master" to find out new trivially correct fixes
that are already applied to 'master' and will be brought to
'next' when I merge 'master' to 'next' next time;
* The user does "git merge master" while on 'next', and tell
gitk to "Update".
* gitk is expected to re-run "git log next..master" (textually
the same command line), but most part of the graph it already
knows about. You need a way to omit what you already know,
so when you run the query for the first time you would want
to remember the actual object names, so that you use them to
tweak the query to "git log next..master --not <positive ones
in the first round>" for the second query.
In the above example, the set of commits actually will shrink
('next' moves and you will exclude more than before upon
"Update").
If you are only interested in cases that the only positive end
grows (in the above example, the user adds commit to 'master'
instead of merging it into 'next'), then grabbing only the
positive ends (e.g. 'master' in 'next..master'), negate them and
append them to the original query would speed things up, but
obviously that would not work in the above example.
next prev parent reply other threads:[~2008-02-29 7:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-27 2:49 Suggestion: make --left-right work with --merge Paul Mackerras
2008-02-27 7:18 ` Junio C Hamano
2008-02-27 22:36 ` Paul Mackerras
2008-02-27 22:50 ` Junio C Hamano
2008-02-28 11:21 ` Paul Mackerras
2008-02-29 7:32 ` Junio C Hamano [this message]
2008-02-29 10:52 ` Paul Mackerras
2008-02-29 19:26 ` Junio C Hamano
2008-03-01 7:39 ` Paul Mackerras
2008-03-01 7:52 ` Junio C Hamano
2008-03-01 10:59 ` Paul Mackerras
2008-02-29 21:05 ` Linus Torvalds
2008-02-29 7:49 ` 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=7vprugdxpj.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
--cc=torvalds@linux-foundation.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).