aboutsummaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-04-28 11:32:12 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-04 17:41:39 -0700
commita83619d692deeb2565335144078465acb2dd1457 (patch)
tree568c8aa7b0092ee996e1a4612e89ff252d61ac60 /remote.h
parentc697ad143ba1ff58b29e7efe149d244d4b7010a5 (diff)
downloadgit-a83619d692deeb2565335144078465acb2dd1457.tar.gz
git-a83619d692deeb2565335144078465acb2dd1457.tar.xz
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 'remote.h')
-rw-r--r--remote.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index a38774bbd..f7b7be84b 100644
--- a/remote.h
+++ b/remote.h
@@ -46,6 +46,7 @@ int remote_has_url(struct remote *remote, const char *url);
struct refspec {
unsigned force : 1;
unsigned pattern : 1;
+ unsigned matching : 1;
char *src;
char *dst;