summaryrefslogtreecommitdiff
path: root/git-difftool--helper.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-05-10 10:49:07 -0700
committerJunio C Hamano <gitster@pobox.com>2012-05-10 10:49:08 -0700
commitaa6912b081d11dfa8afaab3a3c5665833e8349df (patch)
tree16564b439518eb89d4fd20d363684d7a57628f1e /git-difftool--helper.sh
parent2c78c91db7fdcc836db869d05d8274c840a07742 (diff)
parent663c1295d8a6a591a805692d311e1d709e3193e2 (diff)
downloadgit-aa6912b081d11dfa8afaab3a3c5665833e8349df.tar.gz
Merge branch 'mh/ref-api-lazy-loose'
Refs API is updated to lazily read sub-hierarchies of refs/ namespace, so that we do not have to grab everything from the filesystem when we are only interested in listing branches, for example. By Michael Haggerty (17) and Junio C Hamano (1) * mh/ref-api-lazy-loose: refs: fix find_containing_dir() regression refs: read loose references lazily read_loose_refs(): eliminate ref_cache argument struct ref_dir: store a reference to the enclosing ref_cache search_for_subdir(): return (ref_dir *) instead of (ref_entry *) get_ref_dir(): add function for getting a ref_dir from a ref_entry read_loose_refs(): rename function from get_ref_dir() refs: wrap top-level ref_dirs in ref_entries find_containing_dir(): use strbuf in implementation of this function bisect: copy filename string obtained from git_path() do_for_each_reflog(): use a strbuf to hold logfile name do_for_each_reflog(): return early on error get_ref_dir(): take the containing directory as argument refs.c: extract function search_for_subdir() get_ref_dir(): require that the dirname argument ends in '/' get_ref_dir(): rename "base" parameter to "dirname" get_ref_dir(): use a strbuf to hold refname get_ref_dir(): return early if directory cannot be read
Diffstat (limited to 'git-difftool--helper.sh')
0 files changed, 0 insertions, 0 deletions