Support '*' in the middle of a refspec
authorDaniel Barkalow <barkalow@iabervon.org>
Sat, 7 Mar 2009 06:11:39 +0000 (01:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Mar 2009 20:19:28 +0000 (12:19 -0800)
commitabd2bde78bd994166900290434a2048e660dabed
treeda95f1db0ca4b46c4220d22da637577cc1460c95
parent08fbdb30438fd7087c5abe15840a22fe21094515
Support '*' in the middle of a refspec

In order to keep the requirements strict, each * has to be a full path
component, and there may only be one * per side. This requirement is
enforced entirely by check_ref_format(); the matching implementation
will substitute the whatever matches the * in the lhs for the * in the
rhs.

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