Hi, On Wed, 10 Oct 2007, Lars Hjemli wrote: > This avoids looking at every single file below .git/refs when git-branch > is fetching the list of refs to display. > > [...] > > + 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. So I think that your patch (unfortunately) will no help Han-Wen's situation. Ciao, Dscho - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html