summaryrefslogtreecommitdiff
path: root/refspec.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 22:57:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 21:19:41 (GMT)
commit0ad4a5ff50dbc839ae26aa60c03b55bf416b6000 (patch)
treed57cea89eb1cf8d6d3a063278540a6268d5be479 /refspec.h
parentec0cb496553ac82f97205a415ca77618406b30e3 (diff)
downloadgit-0ad4a5ff50dbc839ae26aa60c03b55bf416b6000.zip
git-0ad4a5ff50dbc839ae26aa60c03b55bf416b6000.tar.gz
git-0ad4a5ff50dbc839ae26aa60c03b55bf416b6000.tar.bz2
refspec: rename struct refspec to struct refspec_item
In preparation for introducing an abstraction around a collection of refspecs (much like how a 'struct pathspec' is a collection of 'struct pathspec_item's) rename the existing 'struct refspec' to 'struct refspec_item'. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refspec.h')
-rw-r--r--refspec.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/refspec.h b/refspec.h
index 62625c2..fc9c1af 100644
--- a/refspec.h
+++ b/refspec.h
@@ -2,9 +2,9 @@
#define REFSPEC_H
#define TAG_REFSPEC "refs/tags/*:refs/tags/*"
-extern const struct refspec *tag_refspec;
+extern const struct refspec_item *tag_refspec;
-struct refspec {
+struct refspec_item {
unsigned force : 1;
unsigned pattern : 1;
unsigned matching : 1;
@@ -15,9 +15,9 @@ struct refspec {
};
int valid_fetch_refspec(const char *refspec);
-struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec);
-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec);
+struct refspec_item *parse_fetch_refspec(int nr_refspec, const char **refspec);
+struct refspec_item *parse_push_refspec(int nr_refspec, const char **refspec);
-void free_refspec(int nr_refspec, struct refspec *refspec);
+void free_refspec(int nr_refspec, struct refspec_item *refspec);
#endif /* REFSPEC_H */