Re: [PATCH] git-branch: only traverse the requested refs
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Oct 10, 2007, 23:30 UTC
- Message-ID
- <8c5c35580710101630r36cff79ax6358416dd4851f48@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0710102358110.4174@racer.site>
On 10/11/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 9 quoted lines
> On Wed, 10 Oct 2007, Lars Hjemli wrote:
> > + if (kinds & REF_LOCAL_BRANCH) {
> > + ref_list.kinds = REF_LOCAL_BRANCH;
> > + for_each_branch_ref(append_ref, &ref_list);
> > + }
>
> The function for_each_branch_ref() calls do_for_each_ref(), which in turn
> calls get_loose_refs(), which calls get_ref_dir() to read all loose refs,
> if they have not yet been read.Ok, I'll see if get_loose_refs() could take 'const char *base' and pass this on to get_ref_dir(), which should solve the problem.
Thanks for noticing.
-- larsh