diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-28 09:58:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-28 09:58:23 -0700 |
commit | a69d09436687746a898f86f32c180083f323b616 (patch) | |
tree | 33d636080914a5306158b33563e9a09fd6bf68d1 /sha1_file.c | |
parent | 62bb99606d0377fc14f206cbdf95acb57149d87a (diff) | |
download | git-a69d09436687746a898f86f32c180083f323b616.tar.gz |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sha1_file.c b/sha1_file.c index 5695c962fe..e27affb288 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"); } |