[PATCH 1/1] git: preview for v2.3.0-rc0

John Keeping john at keeping.me.uk
Tue Jan 13 11:09:52 CET 2015


On Tue, Jan 13, 2015 at 10:57:39AM +0100, Christian Hesse wrote:
> John Keeping <john at keeping.me.uk> on Tue, 2015/01/13 09:43:
> > On Tue, Jan 13, 2015 at 09:56:47AM +0100, list at eworm.de wrote:
> > > From: Christian Hesse <mail at eworm.de>
> > > 
> > > * sort_string_list(): rename to string_list_sort() (upstream commit
> > > 3383e199)
> > > * update read_tree_recursive callback to pass strbuf as base (upstream
> > >   commit 6a0b0b6d)
> > > 
> > > Signed-off-by: Christian Hesse <mail at eworm.de>
> > > ---
> > > [...]
> > 
> > Is there any benefit to introducing a new function here?  In other
> > words, is walk_tree() used anywhere else?  If not, wouldn't it be
> > simpler to update the signature of the existing function?
> > 
> > (The same comment applies to several other places below.)
> 
> I just adopted the changes from git upstream to make things work. This is not
> intended for merge... And I will take a closer look for final patch when
> git v2.3.0 arrives. ;)
> 
> Our code include three functions called 'walk_tree()' in ui-plain.c,
> ui-blob.c and ui-tree.c. Can this bring any trouble?

They're all static so they're limited to the files in which they're
declared.  The names won't appear in the final binary at all (except in
debug annotations).


More information about the CGit mailing list