packed-ref cache: forbid dot-components in refnames
commitfee442197dc365fc8dbebbf1a70adf0812fb6e96
authorJonathan Nieder <jrnieder@gmail.com>
Fri, 26 Sep 2014 19:22:22 +0000 (26 12:22 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 14 Oct 2014 23:37:26 +0000 (14 16:37 -0700)
treede95a7051351ad84b7f9af0acb25568a00c0366a
parentb1c2bda857ba0be39b1419e01be37d8a537d96de
packed-ref cache: forbid dot-components in refnames

Since v1.7.9-rc1~10^2 (write_head_info(): handle "extra refs" locally,
2012-01-06), this trick to keep track of ".have" refs that are only
valid on the wire and not on the filesystem is not needed any more.

Simplify by removing support for the REFNAME_DOT_COMPONENT flag.

This means we'll be slightly stricter with invalid refs found in a
packed-refs file or during clone.  read_loose_refs() already checks
for and skips refnames with .components so it is not affected.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Reviewed-by: Ronnie Sahlberg <sahlberg@google.com>
refs.c
refs.h