Merge branch 'mh/check-ref-format-3' into next
commitc2774985d87cd4671c93ea346ff43ce826cc2131
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Oct 2011 22:41:54 +0000 (6 15:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Oct 2011 22:41:54 +0000 (6 15:41 -0700)
treef8225554b709b7e3c1e5643d9fbad9879c5cfda7
parentc083e6915df9016f35ab5696cd78f0c7b529dc2e
parentdce4bab6567de7c458b334e029e3dedcab5f2648
Merge branch 'mh/check-ref-format-3' into next

* mh/check-ref-format-3: (23 commits)
  add_ref(): verify that the refname is formatted correctly
  resolve_ref(): expand documentation
  resolve_ref(): also treat a too-long SHA1 as invalid
  resolve_ref(): emit warnings for improperly-formatted references
  resolve_ref(): verify that the input refname has the right format
  remote: avoid passing NULL to read_ref()
  remote: use xstrdup() instead of strdup()
  resolve_ref(): do not follow incorrectly-formatted symbolic refs
  resolve_ref(): extract a function get_packed_ref()
  resolve_ref(): turn buffer into a proper string as soon as possible
  resolve_ref(): only follow a symlink that contains a valid, normalized refname
  resolve_ref(): use prefixcmp()
  resolve_ref(): explicitly fail if a symlink is not readable
  Change check_refname_format() to reject unnormalized refnames
  Inline function refname_format_print()
  Make collapse_slashes() allocate memory for its result
  Do not allow ".lock" at the end of any refname component
  Refactor check_refname_format()
  Change check_ref_format() to take a flags argument
  Change bad_ref_char() to return a boolean value
  ...
builtin/checkout.c
builtin/fetch-pack.c
builtin/receive-pack.c
builtin/tag.c
cache.h
refs.c
sha1_name.c
transport.c