diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2008-04-18 01:32:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-05 02:41:44 +0200 |
commit | e0aaa29ff324c40a6428d5cc26867392eedf94ad (patch) | |
tree | dcc53a8fdcdbb7b1ef493bd72f3197c72289683b /remote.c | |
parent | Add a library function to add an alternate to the alternates file (diff) | |
download | git-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.c')
-rw-r--r-- | remote.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |