summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-06-07 12:05:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-06-07 18:49:16 (GMT)
commit95cfe9588aaa4036913a6d10fd309ce3a3d23f3b (patch)
tree974139b9e3ab1ca6c7a068f60cf785e78129e88f
parenta1a031d9356cc89cadc5e14acc4028e3ecc306eb (diff)
downloadgit-95cfe9588aaa4036913a6d10fd309ce3a3d23f3b.zip
git-95cfe9588aaa4036913a6d10fd309ce3a3d23f3b.tar.gz
git-95cfe9588aaa4036913a6d10fd309ce3a3d23f3b.tar.bz2
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>
-rw-r--r--builtin/reflog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c
index 062d7da..b3c9e27 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;
}