diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-08-27 01:33:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-28 00:10:21 -0700 |
commit | 170c04383bca07fb5a32227474dfd58f29258d25 (patch) | |
tree | 667334f49e0f103df639a735e75af72465505e3c /builtin-log.c | |
parent | a005085240ef77ac0dde8eb08e27c6ef868d4bab (diff) | |
download | git-170c04383bca07fb5a32227474dfd58f29258d25.tar.gz |
Porcelain level "log" family should recurse when diffing.
Most notably, "git log --name-status" stopped at top level
directory changes without "-r" option.
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 13bae3110e..a381c75f3c 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -55,6 +55,7 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix, rev->abbrev = DEFAULT_ABBREV; rev->commit_format = CMIT_FMT_DEFAULT; rev->verbose_header = 1; + rev->diffopt.recursive = 1; rev->show_root_diff = default_show_root; rev->subject_prefix = fmt_patch_subject_prefix; argc = setup_revisions(argc, argv, rev, "HEAD"); @@ -116,7 +117,6 @@ int cmd_whatchanged(int argc, const char **argv, const char *prefix) git_config(git_log_config); init_revisions(&rev, prefix); rev.diff = 1; - rev.diffopt.recursive = 1; rev.simplify_history = 0; cmd_log_init(argc, argv, prefix, &rev); if (!rev.diffopt.output_format) @@ -165,7 +165,6 @@ int cmd_show(int argc, const char **argv, const char *prefix) git_config(git_log_config); init_revisions(&rev, prefix); rev.diff = 1; - rev.diffopt.recursive = 1; rev.combine_merges = 1; rev.dense_combined_merges = 1; rev.always_show_header = 1; |