summaryrefslogtreecommitdiff
path: root/refs.c
AgeCommit message (Expand)AuthorFilesLines
2012-05-04refs: fix find_containing_dir() regressionLibravatar Junio C Hamano1-1/+3
2012-05-03refs: read loose references lazilyLibravatar Michael Haggerty1-29/+96
2012-05-03read_loose_refs(): eliminate ref_cache argumentLibravatar Michael Haggerty1-4/+4
2012-05-03struct ref_dir: store a reference to the enclosing ref_cacheLibravatar Michael Haggerty1-4/+11
2012-05-03search_for_subdir(): return (ref_dir *) instead of (ref_entry *)Libravatar Michael Haggerty1-11/+10
2012-05-03get_ref_dir(): add function for getting a ref_dir from a ref_entryLibravatar Michael Haggerty1-15/+25
2012-05-03read_loose_refs(): rename function from get_ref_dir()Libravatar Michael Haggerty1-7/+7
2012-05-03refs: wrap top-level ref_dirs in ref_entriesLibravatar Michael Haggerty1-18/+19
2012-05-03find_containing_dir(): use strbuf in implementation of this functionLibravatar Michael Haggerty1-9/+10
2012-05-03do_for_each_reflog(): use a strbuf to hold logfile nameLibravatar Michael Haggerty1-29/+31
2012-05-03do_for_each_reflog(): return early on errorLibravatar Michael Haggerty1-35/+35
2012-05-03get_ref_dir(): take the containing directory as argumentLibravatar Michael Haggerty1-4/+8
2012-05-03refs.c: extract function search_for_subdir()Libravatar Michael Haggerty1-10/+24
2012-05-03get_ref_dir(): require that the dirname argument ends in '/'Libravatar Michael Haggerty1-7/+7
2012-05-03get_ref_dir(): rename "base" parameter to "dirname"Libravatar Michael Haggerty1-10/+10
2012-05-03get_ref_dir(): use a strbuf to hold refnameLibravatar Michael Haggerty1-28/+26
2012-05-02Merge branch 'nd/i18n'Libravatar Junio C Hamano1-0/+1
2012-04-25get_ref_dir(): return early if directory cannot be readLibravatar Michael Haggerty1-41/+44
2012-04-24i18n: make warn_dangling_symref() automatically append \nLibravatar Nguyễn Thái Ngọc Duy1-0/+1
2012-04-10do_for_each_ref(): only iterate over the subtree that was requestedLibravatar Michael Haggerty1-7/+28
2012-04-10refs: store references hierarchicallyLibravatar Michael Haggerty1-47/+227
2012-04-10sort_ref_dir(): simplify logicLibravatar Michael Haggerty1-10/+11
2012-04-10refs.c: rename ref_array -> ref_dirLibravatar Michael Haggerty1-98/+97
2012-04-10struct ref_entry: nest the value part in a unionLibravatar Michael Haggerty1-13/+19
2012-04-10check_refname_component(): return 0 for zero-length componentsLibravatar Michael Haggerty1-2/+2
2012-04-10free_ref_entry(): new functionLibravatar Michael Haggerty1-2/+7
2012-04-10names_conflict(): simplify implementationLibravatar Michael Haggerty1-25/+37
2012-04-10repack_without_ref(): reimplement using do_for_each_ref_in_array()Libravatar Michael Haggerty1-33/+61
2012-04-10do_for_each_ref_in_arrays(): new functionLibravatar Michael Haggerty1-29/+53
2012-04-10do_for_each_ref_in_array(): new functionLibravatar Michael Haggerty1-10/+23
2012-04-10refs: manage current_ref within do_one_ref()Libravatar Michael Haggerty1-6/+7
2012-04-10refs.c: reorder definitions more logicallyLibravatar Michael Haggerty1-253/+256
2012-02-12refs: remove the extra_refs APILibravatar Michael Haggerty1-22/+1
2012-01-17add_packed_ref(): new function in the refs API.Libravatar Michael Haggerty1-0/+6
2012-01-17ref_array: keep track of whether references are sortedLibravatar Michael Haggerty1-7/+26
2011-12-20Merge branch 'mh/ref-api'Libravatar Junio C Hamano1-243/+261
2011-12-13Rename resolve_ref() to resolve_ref_unsafe()Libravatar Nguyễn Thái Ngọc Duy1-11/+11
2011-12-13Convert resolve_ref+xstrdup to new resolve_refdup functionLibravatar Nguyễn Thái Ngọc Duy1-0/+6
2011-12-12add_ref(): take a (struct ref_entry *) parameterLibravatar Michael Haggerty1-9/+5
2011-12-12create_ref_entry(): extract function from add_ref()Libravatar Michael Haggerty1-15/+22
2011-12-12repack_without_ref(): remove temporaryLibravatar Michael Haggerty1-5/+2
2011-12-12resolve_gitlink_ref_recursive(): change to work with struct ref_cacheLibravatar Michael Haggerty1-24/+10
2011-12-12Pass a (ref_cache *) to the resolve_gitlink_*() helper functionsLibravatar Michael Haggerty1-20/+20
2011-12-12get_ref_dir(): change signatureLibravatar Michael Haggerty1-9/+9
2011-12-12refs: change signatures of get_packed_refs() and get_loose_refs()Libravatar Michael Haggerty1-19/+17
2011-12-12is_dup_ref(): extract function from sort_ref_array()Libravatar Michael Haggerty1-12/+25
2011-12-12add_ref(): add docstringLibravatar Michael Haggerty1-0/+1
2011-12-12parse_ref_line(): add docstringLibravatar Michael Haggerty1-0/+5
2011-12-12is_refname_available(): remove the "quiet" argumentLibravatar Michael Haggerty1-7/+13
2011-12-12clear_ref_array(): rename from free_ref_array()Libravatar Michael Haggerty1-4/+4