summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 16:58:23 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 16:58:23 (GMT)
commita69d09436687746a898f86f32c180083f323b616 (patch)
tree33d636080914a5306158b33563e9a09fd6bf68d1 /sha1_file.c
parent62bb99606d0377fc14f206cbdf95acb57149d87a (diff)
downloadgit-a69d09436687746a898f86f32c180083f323b616.zip
git-a69d09436687746a898f86f32c180083f323b616.tar.gz
git-a69d09436687746a898f86f32c180083f323b616.tar.bz2
Teach packing about "tag" objects
(And teach sha1_file and unpack-object know how to unpack them too, of course)
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 5695c96..e27affb 100644
--- 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");
}