diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2008-04-28 17:32:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-05 02:41:39 +0200 |
commit | a83619d692deeb2565335144078465acb2dd1457 (patch) | |
tree | 568c8aa7b0092ee996e1a4612e89ff252d61ac60 /t/t5511-refspec.sh | |
parent | Cleanup xread() loops to use read_in_full() (diff) | |
download | git-a83619d692deeb2565335144078465acb2dd1457.tar.xz git-a83619d692deeb2565335144078465acb2dd1457.zip |
add special "matching refs" refspec
This patch provides a way to specify "push matching heads" using a
special refspec ":". This is useful because it allows "push = +:"
as a way to specify that matching refs will be pushed but, in addition,
forced updates will be allowed, which was not possible before.
Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5511-refspec.sh')
-rwxr-xr-x | t/t5511-refspec.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t5511-refspec.sh b/t/t5511-refspec.sh index 670a8f1c99..22ba380034 100755 --- a/t/t5511-refspec.sh +++ b/t/t5511-refspec.sh @@ -23,10 +23,13 @@ test_refspec () { } test_refspec push '' invalid -test_refspec push ':' invalid +test_refspec push ':' +test_refspec push '::' invalid +test_refspec push '+:' test_refspec fetch '' test_refspec fetch ':' +test_refspec fetch '::' invalid test_refspec push 'refs/heads/*:refs/remotes/frotz/*' test_refspec push 'refs/heads/*:refs/remotes/frotz' invalid |