Re: [PATCH 1/3] list-objects.c: factor out traverse_trees_and_blobs
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 28, 2017, 17:15 UTC
- Message-ID
- <alpine.DEB.2.21.1.1710281913060.6482@virtualbox>
- In-Reply-To
- <20171028004506.10253-1-sbeller@google.com>
Hi Stefan,
[I was intrigued enough by your work to postpone to later this coming week reading the What's cooking email in favor of reviewing your patch series.]
On Fri, 27 Oct 2017, Stefan Beller wrote:
> With traverse_trees_and_blobs factored out of the main traverse function, > the next patch can introduce an in-order revision walking with ease.
Makes sense.
Show 14 quoted lines
> diff --git a/list-objects.c b/list-objects.c > index b3931fa434..0ee0551604 100644 > --- a/list-objects.c > +++ b/list-objects.c > @@ -183,25 +183,13 @@ static void add_pending_tree(struct rev_info *revs, struct tree *tree) > add_pending_object(revs, &tree->object, ""); > } > > -void traverse_commit_list(struct rev_info *revs, > - show_commit_fn show_commit, > - show_object_fn show_object, > - void *data) > +static void traverse_trees_and_blobs(struct rev_info *revs, > + struct strbuf *base,
In the context of one function, it was obvious what `base` meant. Maybe we can call it `base_path` now?
Thanks, Dscho