aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-06-07 19:05:11 +0700
committerJunio C Hamano <gitster@pobox.com>2012-06-07 11:49:16 -0700
commit95cfe9588aaa4036913a6d10fd309ce3a3d23f3b (patch)
tree974139b9e3ab1ca6c7a068f60cf785e78129e88f /builtin
parenta1a031d9356cc89cadc5e14acc4028e3ecc306eb (diff)
downloadgit-95cfe9588aaa4036913a6d10fd309ce3a3d23f3b.tar.gz
git-95cfe9588aaa4036913a6d10fd309ce3a3d23f3b.tar.xz
reflog: remove i18n legos in pruning message
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 062d7dad1..b3c9e27bd 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;
}