summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25b4e1a)
raw | patch | inline | side by side (parent: 25b4e1a)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sun, 5 Sep 2010 14:54:15 +0000 (14:54 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:58:15 +0000 (07:58 +0000) |
Split up the "could not %s %s... %s" message into "could not revert
%s... %s" and "could not apply %s... %s". This makes it easier for
translators to understand the message.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
%s... %s" and "could not apply %s... %s". This makes it easier for
translators to understand the message.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
builtin/revert.c | patch | blob | history | |
t/t3507-cherry-pick-conflict.sh | patch | blob | history |
diff --git a/builtin/revert.c b/builtin/revert.c
index 48b13735778b1fa46232b2a0d825233b26e49323..c8463d23ca65b8b0d8089288fb2b1b023fd47179 100644 (file)
--- a/builtin/revert.c
+++ b/builtin/revert.c
}
if (res) {
- error("could not %s %s... %s",
- action == REVERT ? "revert" : "apply",
+ error(action == REVERT
+ ? _("could not revert %s... %s")
+ : _("could not apply %s... %s"),
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV),
msg.subject);
print_advice();
index 607bf25d8ff7720407c2b15e4808c575b5f36093..bf664ece091c6eff305f60390c521e3b0b8da1e1 100755 (executable)
test "$head" = "$newhead"
'
-test_expect_success 'advice from failed cherry-pick' "
+test_expect_success NO_GETTEXT_POISON 'advice from failed cherry-pick' "
git checkout -f initial^0 &&
git read-tree -u --reset HEAD &&
git clean -d -f -f -q -x &&