summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2018-02-09 20:32:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-09 21:10:12 (GMT)
commit750d0da9cfbc2519f1ef478d50de0ce549c41f05 (patch)
tree707f8b152e9a658bb8508fd419820cd58af9bcfd /remote.h
parent0711883218039750f940d8febf05a81aa46d2ab9 (diff)
downloadgit-750d0da9cfbc2519f1ef478d50de0ce549c41f05.zip
git-750d0da9cfbc2519f1ef478d50de0ce549c41f05.tar.gz
git-750d0da9cfbc2519f1ef478d50de0ce549c41f05.tar.bz2
remote: add a macro for "refs/tags/*:refs/tags/*"
Add a macro with the refspec string "refs/tags/*:refs/tags/*". There's been a pre-defined struct version of this since e0aaa29ff3 ("Have a constant extern refspec for "--tags"", 2008-04-17), but nothing that could be passed to e.g. add_fetch_refspec(). This will be used in subsequent commits to avoid hardcoding this string in multiple places. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index 1f6611b..80fea6d 100644
--- a/remote.h
+++ b/remote.h
@@ -297,4 +297,6 @@ extern int parseopt_push_cas_option(const struct option *, const char *arg, int
extern int is_empty_cas(const struct push_cas_option *);
void apply_push_cas(struct push_cas_option *, struct remote *, struct ref *);
+#define TAG_REFSPEC "refs/tags/*:refs/tags/*"
+
#endif