Make '--decorate' set an explicit 'show_decorations' flag
We will want to add decorations without necessarily showing them, so add an explicit revisions info flag as to whether we're showing decorations or not. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
3a5e860815
commit
d467a525da
@ -59,6 +59,8 @@ void show_decorations(struct rev_info *opt, struct commit *commit)
|
||||
|
||||
if (opt->show_source && commit->util)
|
||||
printf(" %s", (char *) commit->util);
|
||||
if (!opt->show_decorations)
|
||||
return;
|
||||
decoration = lookup_decoration(&name_decoration, &commit->object);
|
||||
if (!decoration)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user