diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-03 11:23:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-04 00:08:19 -0800 |
commit | d467a525da28b28a0d8e16a42e121ab638fa7347 (patch) | |
tree | c45e22da4288068ce884c67e84c2e2f450e5e2d0 /log-tree.c | |
parent | 3a5e860815010e362c746aedf7981e9b3b9a69e8 (diff) | |
download | git-d467a525da28b28a0d8e16a42e121ab638fa7347.tar.gz |
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>
Diffstat (limited to 'log-tree.c')
-rw-r--r-- | log-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c index cf7947b9c9..5444f0860b 100644 --- a/log-tree.c +++ b/log-tree.c @@ -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; |