git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about "git log --cherry"
@ 2013-09-26 16:35 Francis Moreau
  2013-09-26 20:21 ` John Keeping
  0 siblings, 1 reply; 7+ messages in thread
From: Francis Moreau @ 2013-09-26 16:35 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello,

I'm trying to use "git log --cherry ..." in order to display new, kept
and removed commits between two branches A and B.

So commits which are only in B are considered new and should be marked
with '+'. Commits which are in both branches are marked with '=' but
only commit in branch B are shown. Eventually commits which are in A
but not in B anymore should be marked with '-'.

So far I found this solution:

  $ git log --cherry-mark --right-only A...B
  $ git log --cherry-pick  --left-only   A...B

but I have to call twice git-log. This can be annoying since depending
on A and B, calling git-log can take time.

Is there another option that I'm missing which would do the job but
with only one call to git-log ?

Thanks
-- 
Francis

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-27  9:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 16:35 Question about "git log --cherry" Francis Moreau
2013-09-26 20:21 ` John Keeping
2013-09-27  5:09   ` Francis Moreau
2013-09-27  8:11     ` John Keeping
2013-09-27  8:28       ` Francis Moreau
2013-09-27  9:14         ` John Keeping
2013-09-27  9:52           ` Francis Moreau

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).