Skip to content

Commit

Permalink
Merge branch 'mh/ref-api'
Browse files Browse the repository at this point in the history
Allows walking only a sub-hierarchy in refs/*.

By Michael Haggerty
* mh/ref-api:
  do_for_each_ref(): only iterate over the subtree that was requested
  refs: store references hierarchically
  sort_ref_dir(): simplify logic
  refs.c: rename ref_array -> ref_dir
  struct ref_entry: nest the value part in a union
  check_refname_component(): return 0 for zero-length components
  free_ref_entry(): new function
  names_conflict(): simplify implementation
  repack_without_ref(): reimplement using do_for_each_ref_in_array()
  do_for_each_ref_in_arrays(): new function
  do_for_each_ref_in_array(): new function
  refs: manage current_ref within do_one_ref()
  refs.c: reorder definitions more logically
  • Loading branch information
Junio C Hamano committed Apr 24, 2012
2 parents 419f2ec + 933ac03 commit 5e69491
Show file tree
Hide file tree
Showing 2 changed files with 669 additions and 373 deletions.
Loading

0 comments on commit 5e69491

Please sign in to comment.