From 06cb843fea195ea99391c4daf8018a13ec99c75e Mon Sep 17 00:00:00 2001 From: Stefan Saasen Date: Fri, 12 Apr 2013 15:56:24 +1000 Subject: Documentation: distinguish between ref and offset deltas in pack-format eb32d236 introduced the OBJ_OFS_DELTA object that uses a relative offset to identify the base object instead of the 20-byte SHA1 reference. The pack file documentation only mentions the SHA1 based reference in its description of the deltified object entry. Update the pack format documentation to clarify that the deltified object representation refers to its base using either a relative negative offset or the absolute SHA1 identifier. Signed-off-by: Stefan Saasen Signed-off-by: Junio C Hamano diff --git a/Documentation/technical/pack-format.txt b/Documentation/technical/pack-format.txt index a7871fb..f194d1c 100644 --- a/Documentation/technical/pack-format.txt +++ b/Documentation/technical/pack-format.txt @@ -26,7 +26,9 @@ GIT pack format (deltified representation) n-byte type and length (3-bit type, (n-1)*7+4-bit length) - 20-byte base object name + 20-byte base object name if OBJ_REF_DELTA or a negative relative + offset from the delta object's position in the pack if this + is an OBJ_OFS_DELTA object compressed delta data Observation: length of each object is encoded in a variable -- cgit v0.10.2-6-g49f6 From 04a74b6cfa5ef4870263f84ac94a488d9f2ef14a Mon Sep 17 00:00:00 2001 From: Paul Price Date: Fri, 12 Apr 2013 10:05:55 -0400 Subject: fast-export: fix argument name in error messages The --signed-tags argument is plural, while error messages referred to --signed-tag (singular). Tweak error messages to correspond to the argument. Signed-off-by: Paul Price Signed-off-by: Junio C Hamano diff --git a/builtin/fast-export.c b/builtin/fast-export.c index 12220ad..06a5279 100644 --- a/builtin/fast-export.c +++ b/builtin/fast-export.c @@ -43,7 +43,7 @@ static int parse_opt_signed_tag_mode(const struct option *opt, else if (!strcmp(arg, "strip")) signed_tag_mode = STRIP; else - return error("Unknown signed-tag mode: %s", arg); + return error("Unknown signed-tags mode: %s", arg); return 0; } @@ -416,7 +416,7 @@ static void handle_tag(const char *name, struct tag *tag) switch(signed_tag_mode) { case ABORT: die ("Encountered signed tag %s; use " - "--signed-tag= to handle it.", + "--signed-tags= to handle it.", sha1_to_hex(tag->object.sha1)); case WARN: warning ("Exporting signed tag %s", -- cgit v0.10.2-6-g49f6