login
Header Space

 
 

[PATCH 3/5] mktag.c: rename verify_tag to verify_tag_buffer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: <gitster@...>, Brandon Casey <drafnel@...>
Date: Thursday, May 8, 2008 - 10:19 pm

From: Brandon Casey <drafnel@gmail.com>

This is in preparation for merging mktag.c with builtin-tag.c and
using verify_tag_buffer within the git-tag code path.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
---
 mktag.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mktag.c b/mktag.c
index 352747b..6204001 100644
--- a/mktag.c
+++ b/mktag.c
@@ -39,7 +39,7 @@ static int verify_object(unsigned char *sha1, const char *expected_type)
 #define PD_FMT "%td"
 #endif
 
-static int verify_tag(const char *buffer, size_t size)
+static int verify_tag_buffer(const char *buffer, size_t size)
 {
 	int typelen;
 	char type[20];
@@ -171,7 +171,7 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
 
 	/* Verify it for some basic sanity: it needs to start with
 	   "object <sha1>\ntype\ntagger " */
-	if (verify_tag(buf.buf, buf.len) < 0)
+	if (verify_tag_buffer(buf.buf, buf.len) < 0)
 		die("invalid tag signature file");
 
 	if (write_sha1_file(buf.buf, buf.len, tag_type, result_sha1) < 0)
-- 
1.5.5.67.g9a49

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/5] mktag.c: rename verify_tag to verify_tag_buffer, , (Thu May 8, 10:19 pm)
speck-geostationary