Keep '*' in pattern refspecs
commit08fbdb30438fd7087c5abe15840a22fe21094515
authorDaniel Barkalow <barkalow@iabervon.org>
Sat, 7 Mar 2009 06:11:36 +0000 (7 01:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Mar 2009 20:19:24 +0000 (7 12:19 -0800)
tree4c3a23090737b8c858911c1985e219ae9ee1c7ba
parente928213fb40c106650dca2632b5e830cfaffb86a
Keep '*' in pattern refspecs

In order to do anything more capable with refspecs, the first step is
to keep the entire input. Additionally, validate patterns by checking
for the ref matching the rules for a pattern as given by
check_ref_format(). This requires a slight change to
check_ref_format() to make it enforce the requirement that the '*'
immediately follow a '/'.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
remote.c