librelist archives

« back to archive

revwalk vs reference_list/foreach

revwalk vs reference_list/foreach

From:
Nacho
Date:
2011-08-20 @ 19:26
Hey guys,

what's the point for reference_list/foreach when there is also this revwalk
thing?

Regards.

-- 
Ignacio Casal Quinteiro

Re: [libgit2] revwalk vs reference_list/foreach

From:
Carlos Martín Nieto
Date:
2011-08-20 @ 19:34
On Sat, 2011-08-20 at 21:26 +0200, Nacho wrote:
> Hey guys,
> 
> what's the point for reference_list/foreach when there is also this revwalk
> thing?

They are two completely different things. One lists references (or calls
a function for each one) and the other one allows you to walk the DAG
"upwards".

Cheers,
   cmn
-- 
Carlos Martín Nieto        http://www.cmartin.tk

"¿Cómo voy a decir bobadas si soy mudo?" -- CACHAI

Re: [libgit2] revwalk vs reference_list/foreach

From:
Nacho
Date:
2011-08-20 @ 19:39
Thanks for the explanation.

Regards.

On Sat, Aug 20, 2011 at 9:34 PM, Carlos Martín Nieto <carlos@cmartin.tk>wrote:

> On Sat, 2011-08-20 at 21:26 +0200, Nacho wrote:
> > Hey guys,
> >
> > what's the point for reference_list/foreach when there is also this
> revwalk
> > thing?
>
> They are two completely different things. One lists references (or calls
> a function for each one) and the other one allows you to walk the DAG
> "upwards".
>
> Cheers,
>   cmn
> --
> Carlos Martín Nieto        http://www.cmartin.tk
>
> "¿Cómo voy a decir bobadas si soy mudo?" -- CACHAI
>



-- 
Ignacio Casal Quinteiro