librelist archives

« back to archive

Can a revision walker show commits from all branches?

Can a revision walker show commits from all branches?

From:
David Catmull
Date:
2011-08-15 @ 22:59
It looks like a revision walker only shows commits from the current 
branch. Is it possible to make it include all branches?

-- 
David Catmull
uncommon@uncommonplace.com
http://www.uncommonplace.com/

Re: [libgit2] Can a revision walker show commits from all branches?

From:
Charlie Sharpsteen
Date:
2011-08-16 @ 00:43
On Mon, Aug 15, 2011 at 3:59 PM, David Catmull
<uncommon@uncommonplace.com>wrote:

> It looks like a revision walker only shows commits from the current branch.
> Is it possible to make it include all branches?
>

I think if you pushed a commit from the tip of each branch onto the walker
it would yield the history of each branch. Some commits might be duplicated
though.

-Charlie

Re: [libgit2] Can a revision walker show commits from all branches?

From:
Vicent Marti
Date:
2011-08-16 @ 07:44
Absolutely. Just push every single HEAD into the the walker. You won't
get any duplicate commits.

On Tue, Aug 16, 2011 at 12:43 AM, Charlie Sharpsteen
<chuck@sharpsteen.net> wrote:
> On Mon, Aug 15, 2011 at 3:59 PM, David Catmull <uncommon@uncommonplace.com>
> wrote:
>>
>> It looks like a revision walker only shows commits from the current
>> branch. Is it possible to make it include all branches?
>
> I think if you pushed a commit from the tip of each branch onto the walker
> it would yield the history of each branch. Some commits might be duplicated
> though.
> -Charlie