summaryrefslogtreecommitdiffstats
path: root/remote.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-04-18 01:32:35 +0200
committerJunio C Hamano <gitster@pobox.com>2008-05-05 02:41:44 +0200
commite0aaa29ff324c40a6428d5cc26867392eedf94ad (patch)
treedcc53a8fdcdbb7b1ef493bd72f3197c72289683b /remote.h
parentAdd a library function to add an alternate to the alternates file (diff)
downloadgit-e0aaa29ff324c40a6428d5cc26867392eedf94ad.tar.xz
git-e0aaa29ff324c40a6428d5cc26867392eedf94ad.zip
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.h')
-rw-r--r--remote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index a38774bbdc..f0a79de210 100644
--- a/remote.h
+++ b/remote.h
@@ -51,6 +51,8 @@ struct refspec {
char *dst;
};
+extern const struct refspec *tag_refspec;
+
struct ref *alloc_ref(unsigned namelen);
struct ref *copy_ref_list(const struct ref *ref);