git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-rev-list --merge-order bug?
@ 2005-06-29 19:14 A Large Angry SCM
  2005-06-29 22:40 ` Jon Seymour
  0 siblings, 1 reply; 2+ messages in thread
From: A Large Angry SCM @ 2005-06-29 19:14 UTC (permalink / raw)
  To: git

I've noticed that git-rev-list will sometimes return a different 
*number* of commit objects depending on whether the "--merge-order" 
switch was used.

For example:

Get a copy of Linus' git git repository from rsync.kernel.org and try 
the following:

git-rev-list ee28152d03f2cf4b5e3ebc25f7f03f9654d3aa0d \
	^aa03413467a2f2ada900817dc2a8e3904549b5fe |wc -l

git-rev-list ee28152d03f2cf4b5e3ebc25f7f03f9654d3aa0d \
	^aa03413467a2f2ada900817dc2a8e3904549b5fe --merge-order |wc -l

The first git-rev-list returns 4 commits and the second returns 304.

Those commits are dated 2005-05-03 and 2005-05-02. If you use gitk, 
search for ``builtin'' which will jump to the merge base of the 2 branches.

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

* Re: git-rev-list --merge-order bug?
  2005-06-29 19:14 git-rev-list --merge-order bug? A Large Angry SCM
@ 2005-06-29 22:40 ` Jon Seymour
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Seymour @ 2005-06-29 22:40 UTC (permalink / raw)
  To: gitzilla; +Cc: Linus Torvalds, Git Mailing List

> 
> git-rev-list ee28152d03f2cf4b5e3ebc25f7f03f9654d3aa0d \
>         ^aa03413467a2f2ada900817dc2a8e3904549b5fe |wc -l
> 
> git-rev-list ee28152d03f2cf4b5e3ebc25f7f03f9654d3aa0d \
>         ^aa03413467a2f2ada900817dc2a8e3904549b5fe --merge-order |wc -l
> 
> The first git-rev-list returns 4 commits and the second returns 304.
> 

I'll look at it.

It appears to do in cases that look like this:

A
|   B
|   |
|  /
C 

git-rev-list B ^A --merge-order

jon.
-- 
homepage: http://www.zeta.org.au/~jon/
blog: http://orwelliantremors.blogspot.com/

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

end of thread, other threads:[~2005-06-29 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29 19:14 git-rev-list --merge-order bug? A Large Angry SCM
2005-06-29 22:40 ` Jon Seymour

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