summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-25 11:24:37 -0700
committerJunio C Hamano <gitster@pobox.com>2012-06-25 11:24:37 -0700
commitefc478d42e705ad020de008cd852a6b7ade3058f (patch)
treead99b483ae10fb8cd978f19ba89bc30a49b879cd /builtin
parent9b3dacc95fc6259b116207b4ac345ffb9e86ea3b (diff)
parent72a23e6449bc29358760b2ccdfacbd9aa37e9b36 (diff)
downloadgit-efc478d42e705ad020de008cd852a6b7ade3058f.tar.gz
Merge branch 'nd/i18n-misc'
Restructure the way message strings are created, in preparation for marking them for i18n. * nd/i18n-misc: rerere: remove i18n legos in result message notes-merge: remove i18n legos in merge result message reflog: remove i18n legos in pruning message
Diffstat (limited to 'builtin')
-rw-r--r--builtin/reflog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c
index 062d7dad1b..b3c9e27bde 100644
--- a/builtin/reflog.c
+++ b/builtin/reflog.c
@@ -330,8 +330,10 @@ static int expire_reflog_ent(unsigned char *osha1, unsigned char *nsha1,
printf("keep %s", message);
return 0;
prune:
- if (!cb->newlog || cb->cmd->verbose)
- printf("%sprune %s", cb->newlog ? "" : "would ", message);
+ if (!cb->newlog)
+ printf("would prune %s", message);
+ else if (cb->cmd->verbose)
+ printf("prune %s", message);
return 0;
}