summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec4465a)
raw | patch | inline | side by side (parent: ec4465a)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 25 Apr 2005 22:21:49 +0000 (15:21 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Mon, 25 Apr 2005 22:21:49 +0000 (15:21 -0700) |
the name of the object it tags.
You need this if you actually want to build up a list of tags.
You need this if you actually want to build up a list of tags.
fsck-cache.c | patch | blob | history |
diff --git a/fsck-cache.c b/fsck-cache.c
index 12443b165578fc458ea3fa66999ed77641aad209..27c9ccdeb121bff4a071e9b621ddede099878428 100644 (file)
--- a/fsck-cache.c
+++ b/fsck-cache.c
{
int typelen, taglen;
unsigned char object[20];
+ char object_hex[60];
const char *type_line, *tag_line, *sig_line;
if (size < 64)
return -1;
taglen = sig_line - tag_line - strlen("tag \n");
- printf("tagged %.*s %s (%.*s)\n",
+ strcpy(object_hex, sha1_to_hex(object));
+ printf("tagged %.*s %s (%.*s) in %s\n",
typelen, type_line + 5,
- sha1_to_hex(object),
- taglen, tag_line + 4);
+ object_hex,
+ taglen, tag_line + 4,
+ sha1_to_hex(sha1));
return 0;
}