summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a5e860)
raw | patch | inline | side by side (parent: 3a5e860)
author | Linus Torvalds <torvalds@linux-foundation.org> | |
Mon, 3 Nov 2008 19:23:57 +0000 (11:23 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Nov 2008 08:08:19 +0000 (00:08 -0800) |
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>
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>
builtin-log.c | patch | blob | history | |
log-tree.c | patch | blob | history | |
revision.h | patch | blob | history |
diff --git a/builtin-log.c b/builtin-log.c
index 176cbce308be8147aa06134c57b846cb8a4761ed..82ea07b1bd7ba03991c1fb3cca40796f21dbaab7 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
struct rev_info *rev)
{
int i;
- int decorate = 0;
rev->abbrev = DEFAULT_ABBREV;
rev->commit_format = CMIT_FMT_DEFAULT;
const char *arg = argv[i];
if (!strcmp(arg, "--decorate")) {
load_ref_decorations();
- decorate = 1;
+ rev->show_decorations = 1;
} else if (!strcmp(arg, "--source")) {
rev->show_source = 1;
} else
diff --git a/log-tree.c b/log-tree.c
index cf7947b9c9c37cd0591effc7f3653c1ce2dd723d..5444f0860b2150d440dfbd5a4be4aa2daa1316fc 100644 (file)
--- a/log-tree.c
+++ b/log-tree.c
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;
diff --git a/revision.h b/revision.h
index 51a48630e8e6c2768042846e7b2f07341b806da0..0a1806a9e1173ab860d5ad128f0bc27b93a96e9a 100644 (file)
--- a/revision.h
+++ b/revision.h
rewrite_parents:1,
print_parents:1,
show_source:1,
+ show_decorations:1,
reverse:1,
reverse_output_stage:1,
cherry_pick:1,