From: Lars Hjemli Date: Wed, 10 Oct 2007 23:30:42 GMT Subject: Re: [PATCH] git-branch: only traverse the requested refs Message-ID: <8c5c35580710101630r36cff79ax6358416dd4851f48@mail.gmail.com> In-Reply-To: On 10/11/07, Johannes Schindelin wrote: > 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