Merge branch 'mh/ref-api-3' into next
commit92e2d3517c9a603adf0daff0d784b6ad6b3b9563
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2011 04:51:32 +0000 (23 21:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2011 04:51:32 +0000 (23 21:51 -0700)
tree54bde1419f94b32ad9b1d9cc8ec538e719daa871
parent65075df8e85a1fc9953063ad049c7d6be4c9eb59
parentcaa80697e2189695592c03aa7d8832dcda09ea30
Merge branch 'mh/ref-api-3' into next

* mh/ref-api-3:
  is_refname_available(): reimplement using do_for_each_ref_in_array()
  names_conflict(): simplify implementation
  names_conflict(): new function, extracted from is_refname_available()
  repack_without_ref(): reimplement using do_for_each_ref_in_array()
  do_for_each_ref_in_array(): new function
  do_for_each_ref(): correctly terminate while processesing extra_refs
  add_ref(): take a (struct ref_entry *) parameter
  create_ref_entry(): extract function from add_ref()
  parse_ref_line(): add a check that the refname is properly formatted
  repack_without_ref(): remove temporary
  Rename another local variable name -> refname
refs.c