Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
archive.c: mark more strings for translation
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sat, 10 Nov 2018 05:16:02 +0000
(06:16 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 12 Nov 2018 05:47:09 +0000
(14:47 +0900)
Two messages also print extra information to be more useful
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a7412ae
)
diff --git
a/archive.c
b/archive.c
index 9d16b7fadfc8d30b8a96dd0c908f02783adb791f..d8f6e1ce304c251de41dbe1a83279194fe3bd4a5 100644
(file)
--- a/
archive.c
+++ b/
archive.c
@@
-385,12
+385,12
@@
static void parse_treeish_arg(const char **argv,
int refnamelen = colon - name;
if (!dwim_ref(name, refnamelen, &oid, &ref))
int refnamelen = colon - name;
if (!dwim_ref(name, refnamelen, &oid, &ref))
- die(
"no such ref: %.*s"
, refnamelen, name);
+ die(
_("no such ref: %.*s")
, refnamelen, name);
free(ref);
}
if (get_oid(name, &oid))
free(ref);
}
if (get_oid(name, &oid))
- die(
"Not a valid object name"
);
+ die(
_("not a valid object name: %s"), name
);
commit = lookup_commit_reference_gently(ar_args->repo, &oid, 1);
if (commit) {
commit = lookup_commit_reference_gently(ar_args->repo, &oid, 1);
if (commit) {
@@
-403,7
+403,7
@@
static void parse_treeish_arg(const char **argv,
tree = parse_tree_indirect(&oid);
if (tree == NULL)
tree = parse_tree_indirect(&oid);
if (tree == NULL)
- die(
"not a tree object"
);
+ die(
_("not a tree object: %s"), oid_to_hex(&oid)
);
if (prefix) {
struct object_id tree_oid;
if (prefix) {
struct object_id tree_oid;
@@
-413,7
+413,7
@@
static void parse_treeish_arg(const char **argv,
err = get_tree_entry(&tree->object.oid, prefix, &tree_oid,
&mode);
if (err || !S_ISDIR(mode))
err = get_tree_entry(&tree->object.oid, prefix, &tree_oid,
&mode);
if (err || !S_ISDIR(mode))
- die(
"current working directory is untracked"
);
+ die(
_("current working directory is untracked")
);
tree = parse_tree_indirect(&tree_oid);
}
tree = parse_tree_indirect(&tree_oid);
}