Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 20:58:23 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 20:58:23 +0400
commita69d09436687746a898f86f32c180083f323b616 (patch)
tree33d636080914a5306158b33563e9a09fd6bf68d1 /sha1_file.c
parent62bb99606d0377fc14f206cbdf95acb57149d87a (diff)
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 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");
}