path: root/tag.h
diff options
authorJunio C Hamano <>2014-08-19 20:18:07 (GMT)
committerJunio C Hamano <>2014-09-15 20:23:20 (GMT)
commitd7c67668fe10184736bdfe953ed8dcbfdb57e0c2 (patch)
treef155fb3d22e7489047a661f16bf22a6da708d6cc /tag.h
parenta50e7ca3215492b16d96221cf762dbe71ed99722 (diff)
gpg-interface: move parse_signature() to where it should be
Our signed-tag objects set the standard format used by Git to store GPG-signed payload (i.e. the payload followed by its detached signature) [*1*], and it made sense to have a helper to find the boundary between the payload and its signature in tag.c back then. Newer code added later to parse other kinds of objects that learned to use the same format to store GPG-signed payload (e.g. signed commits), however, kept using the helper from the same location. Move it to gpg-interface; the helper is no longer about signed tag, but it is how our code and data interact with GPG. [Reference] *1* Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'tag.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/tag.h b/tag.h
index bc8a1e4..f4580ae 100644
--- a/tag.h
+++ b/tag.h
@@ -17,6 +17,5 @@ extern int parse_tag_buffer(struct tag *item, const void *data, unsigned long si
extern int parse_tag(struct tag *item);
extern struct object *deref_tag(struct object *, const char *, int);
extern struct object *deref_tag_noverify(struct object *);
-extern size_t parse_signature(const char *buf, unsigned long size);
#endif /* TAG_H */