summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-06 04:00:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-05-06 04:00:27 (GMT)
commite971a1f9d52295503b7ea0cdb75e46470d5d5d8a (patch)
tree47457f13ee22435d95b323f3d0697e47c1a14ca5 /builtin
parent7502b230ced2de7398a292f3da79467065398044 (diff)
parentfc792ca86049a85f9cf916d6bcdbbc1799ba91ec (diff)
downloadgit-e971a1f9d52295503b7ea0cdb75e46470d5d5d8a.zip
git-e971a1f9d52295503b7ea0cdb75e46470d5d5d8a.tar.gz
git-e971a1f9d52295503b7ea0cdb75e46470d5d5d8a.tar.bz2
Merge branch 'ts/checkout-advice-plural'
* ts/checkout-advice-plural: checkout: call a single commit "it" intead of "them"
Diffstat (limited to 'builtin')
-rw-r--r--builtin/checkout.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 3e141fc..4aad49a 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -743,10 +743,17 @@ static void suggest_reattach(struct commit *commit, struct rev_info *revs)
if (advice_detached_head)
fprintf(stderr,
- _(
+ Q_(
+ /* The singular version */
+ "If you want to keep it by creating a new branch, "
+ "this may be a good time\nto do so with:\n\n"
+ " git branch <new-branch-name> %s\n\n",
+ /* The plural version */
"If you want to keep them by creating a new branch, "
"this may be a good time\nto do so with:\n\n"
- " git branch <new-branch-name> %s\n\n"),
+ " git branch <new-branch-name> %s\n\n",
+ /* Give ngettext() the count */
+ lost),
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
}