summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f986f2c)
raw | patch | inline | side by side (parent: f986f2c)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 13 Sep 2006 19:59:20 +0000 (12:59 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 13 Sep 2006 19:59:49 +0000 (12:59 -0700) |
The code called this operation "desperate" but the option flag is -r
and the word "recover" describes what it does better.
Signed-off-by: Junio C Hamano <junkio@cox.net>
and the word "recover" describes what it does better.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-unpack-objects.txt | patch | blob | history | |
builtin-unpack-objects.c | patch | blob | history |
index 415c09ba10a391cec60c939da1722c83df7cd906..ff6184b0f7498a44995fe4c55dab49c5517ec458 100644 (file)
-r::
When unpacking a corrupt packfile, the command dies at
the first corruption. This flag tells it to keep going
- and make the best effort to salvage as many objects as
+ and make the best effort to recover as many objects as
possible.
index 5f9c0d2f9ec17599fdd9a7203fe334bfdcadb848..4f96bcae32afd22093b9a76d5fe5b39ba8268583 100644 (file)
--- a/builtin-unpack-objects.c
+++ b/builtin-unpack-objects.c
#include <sys/time.h>
-static int dry_run, quiet, desperate, has_errors;
-static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file";
+static int dry_run, quiet, recover, has_errors;
+static const char unpack_usage[] = "git-unpack-objects [-n] [-q] [-r] < pack-file";
/* We always read in 4kB chunks. */
static unsigned char buffer[4096];
error("inflate returned %d\n", ret);
free(buf);
buf = NULL;
- if (!desperate)
+ if (!recover)
exit(1);
has_errors = 1;
break;
if (!base) {
error("failed to read delta-pack base object %s",
sha1_to_hex(base_sha1));
- if (!desperate)
+ if (!recover)
exit(1);
has_errors = 1;
return;
default:
error("bad object type %d", type);
has_errors = 1;
- if (desperate)
+ if (recover)
return;
exit(1);
}
continue;
}
if (!strcmp(arg, "-r")) {
- desperate = 1;
+ recover = 1;
continue;
}
usage(unpack_usage);