aboutsummaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-04-17 19:32:35 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-04 17:41:44 -0700
commite0aaa29ff324c40a6428d5cc26867392eedf94ad (patch)
treedcc53a8fdcdbb7b1ef493bd72f3197c72289683b /remote.c
parentbef70b22ba63d71c1ae2e070e64ff9863ea1ad14 (diff)
downloadgit-e0aaa29ff324c40a6428d5cc26867392eedf94ad.tar.gz
git-e0aaa29ff324c40a6428d5cc26867392eedf94ad.tar.xz
Have a constant extern refspec for "--tags"
The refspec refs/tags/*:refs/tags/* is sufficiently common and generic to merit having a constant instead of generating it as needed. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/remote.c b/remote.c
index 2d9af4023..9cb40afd0 100644
--- a/remote.c
+++ b/remote.c
@@ -2,6 +2,15 @@
#include "remote.h"
#include "refs.h"
+static struct refspec s_tag_refspec = {
+ 0,
+ 1,
+ "refs/tags/",
+ "refs/tags/"
+};
+
+const struct refspec *tag_refspec = &s_tag_refspec;
+
struct counted_string {
size_t len;
const char *s;