Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Teach packing about "tag" objects
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 5695c962fe20a60940a5203bc3c33c0a201241e0..e27affb2885717974b5612d4a41a91ed390d7ff7 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-695,6
+695,9
@@
static int packed_object_info(struct pack_entry *entry,
case 'B':
strcpy(type, "blob");
break;
+ case 'G':
+ strcpy(type, "tag");
+ break;
default:
die("corrupted pack file");
}
@@
-807,6
+810,9
@@
static void *unpack_entry(struct pack_entry *entry,
case 'B':
strcpy(type, "blob");
break;
+ case 'G':
+ strcpy(type, "tag");
+ break;
default:
die("corrupted pack file");
}