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 /builtin-log.c | |
parent | 3a5e860815010e362c746aedf7981e9b3b9a69e8 (diff) | |
download | git-d467a525da28b28a0d8e16a42e121ab638fa7347.tar.gz git-d467a525da28b28a0d8e16a42e121ab638fa7347.tar.xz |
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 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-log.c b/builtin-log.c index 176cbce30..82ea07b1b 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -28,7 +28,6 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix, struct rev_info *rev) { int i; - int decorate = 0; rev->abbrev = DEFAULT_ABBREV; rev->commit_format = CMIT_FMT_DEFAULT; @@ -55,7 +54,7 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix, 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 |