OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a031d
)
reflog: remove i18n legos in pruning message
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Thu, 7 Jun 2012 12:05:11 +0000
(19:05 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 7 Jun 2012 18:49:16 +0000
(11:49 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c
patch
|
blob
|
history
diff --git
a/builtin/reflog.c
b/builtin/reflog.c
index
062d7da
..
b3c9e27
100644
(file)
--- 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;
}