Merge branch 'nd/i18n'
Many more strings are prepared for l10n. * nd/i18n: (23 commits) transport-helper.c: mark more strings for translation transport.c: mark more strings for translation sha1-file.c: mark more strings for translation sequencer.c: mark more strings for translation replace-object.c: mark more strings for translation refspec.c: mark more strings for translation refs.c: mark more strings for translation pkt-line.c: mark more strings for translation object.c: mark more strings for translation exec-cmd.c: mark more strings for translation environment.c: mark more strings for translation dir.c: mark more strings for translation convert.c: mark more strings for translation connect.c: mark more strings for translation config.c: mark more strings for translation commit-graph.c: mark more strings for translation builtin/replace.c: mark more strings for translation builtin/pack-objects.c: mark more strings for translation builtin/grep.c: mark strings for translation builtin/config.c: mark more strings for translation ...
This commit is contained in:
@ -241,7 +241,7 @@ static void export_blob(const struct object_id *oid)
|
||||
} else {
|
||||
buf = read_object_file(oid, &type, &size);
|
||||
if (!buf)
|
||||
die ("Could not read blob %s", oid_to_hex(oid));
|
||||
die("could not read blob %s", oid_to_hex(oid));
|
||||
if (check_object_signature(oid, buf, size, type_name(type)) < 0)
|
||||
die("sha1 mismatch in blob %s", oid_to_hex(oid));
|
||||
object = parse_object_buffer(the_repository, oid, type,
|
||||
@ -255,7 +255,7 @@ static void export_blob(const struct object_id *oid)
|
||||
|
||||
printf("blob\nmark :%"PRIu32"\ndata %lu\n", last_idnum, size);
|
||||
if (size && fwrite(buf, size, 1, stdout) != 1)
|
||||
die_errno ("Could not write blob '%s'", oid_to_hex(oid));
|
||||
die_errno("could not write blob '%s'", oid_to_hex(oid));
|
||||
printf("\n");
|
||||
|
||||
show_progress();
|
||||
@ -563,14 +563,14 @@ static void handle_commit(struct commit *commit, struct rev_info *rev,
|
||||
commit_buffer = get_commit_buffer(commit, NULL);
|
||||
author = strstr(commit_buffer, "\nauthor ");
|
||||
if (!author)
|
||||
die ("Could not find author in commit %s",
|
||||
oid_to_hex(&commit->object.oid));
|
||||
die("could not find author in commit %s",
|
||||
oid_to_hex(&commit->object.oid));
|
||||
author++;
|
||||
author_end = strchrnul(author, '\n');
|
||||
committer = strstr(author_end, "\ncommitter ");
|
||||
if (!committer)
|
||||
die ("Could not find committer in commit %s",
|
||||
oid_to_hex(&commit->object.oid));
|
||||
die("could not find committer in commit %s",
|
||||
oid_to_hex(&commit->object.oid));
|
||||
committer++;
|
||||
committer_end = strchrnul(committer, '\n');
|
||||
message = strstr(committer_end, "\n\n");
|
||||
@ -691,7 +691,7 @@ static void handle_tag(const char *name, struct tag *tag)
|
||||
|
||||
buf = read_object_file(&tag->object.oid, &type, &size);
|
||||
if (!buf)
|
||||
die ("Could not read tag %s", oid_to_hex(&tag->object.oid));
|
||||
die("could not read tag %s", oid_to_hex(&tag->object.oid));
|
||||
message = memmem(buf, size, "\n\n", 2);
|
||||
if (message) {
|
||||
message += 2;
|
||||
@ -728,18 +728,18 @@ static void handle_tag(const char *name, struct tag *tag)
|
||||
if (signature)
|
||||
switch(signed_tag_mode) {
|
||||
case ABORT:
|
||||
die ("Encountered signed tag %s; use "
|
||||
"--signed-tags=<mode> to handle it.",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
die("encountered signed tag %s; use "
|
||||
"--signed-tags=<mode> to handle it",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
case WARN:
|
||||
warning ("Exporting signed tag %s",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
warning("exporting signed tag %s",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
/* fallthru */
|
||||
case VERBATIM:
|
||||
break;
|
||||
case WARN_STRIP:
|
||||
warning ("Stripping signature from tag %s",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
warning("stripping signature from tag %s",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
/* fallthru */
|
||||
case STRIP:
|
||||
message_size = signature + 1 - message;
|
||||
@ -753,18 +753,18 @@ static void handle_tag(const char *name, struct tag *tag)
|
||||
if (!tagged_mark) {
|
||||
switch(tag_of_filtered_mode) {
|
||||
case ABORT:
|
||||
die ("Tag %s tags unexported object; use "
|
||||
"--tag-of-filtered-object=<mode> to handle it.",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
die("tag %s tags unexported object; use "
|
||||
"--tag-of-filtered-object=<mode> to handle it",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
case DROP:
|
||||
/* Ignore this tag altogether */
|
||||
free(buf);
|
||||
return;
|
||||
case REWRITE:
|
||||
if (tagged->type != OBJ_COMMIT) {
|
||||
die ("Tag %s tags unexported %s!",
|
||||
oid_to_hex(&tag->object.oid),
|
||||
type_name(tagged->type));
|
||||
die("tag %s tags unexported %s!",
|
||||
oid_to_hex(&tag->object.oid),
|
||||
type_name(tagged->type));
|
||||
}
|
||||
p = (struct commit *)tagged;
|
||||
for (;;) {
|
||||
@ -775,7 +775,7 @@ static void handle_tag(const char *name, struct tag *tag)
|
||||
if (!(p->object.flags & TREESAME))
|
||||
break;
|
||||
if (!p->parents)
|
||||
die ("Can't find replacement commit for tag %s\n",
|
||||
die("can't find replacement commit for tag %s",
|
||||
oid_to_hex(&tag->object.oid));
|
||||
p = p->parents->item;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user