diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-05-14 11:46:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-14 11:46:16 -0700 |
commit | adc3a81ce21754595d6263c78f3ceac5b9bb30d9 (patch) | |
tree | 63fb0bf78dce58d485a43215f1aaa63e7006ebe4 /log-tree.c | |
parent | badabc06f3f34a85a931dffa8e8d607d2ff016fc (diff) | |
parent | 55ccf85a524f6a2d8cb5582d80a2927ff11dfb64 (diff) | |
download | git-adc3a81ce21754595d6263c78f3ceac5b9bb30d9.tar.gz git-adc3a81ce21754595d6263c78f3ceac5b9bb30d9.tar.xz |
Merge branch 'jk/maint-reflog-walk-count-vs-time' into maint
Gives a better DWIM behaviour for --pretty=format:%gd, "stash list", and
"log -g", depending on how the starting point ("master" vs "master@{0}" vs
"master@{now}") and date formatting options (e.g. "--date=iso") are given
on the command line.
By Jeff King (4) and Junio C Hamano (1)
* jk/maint-reflog-walk-count-vs-time:
reflog-walk: tell explicit --date=default from not having --date at all
reflog-walk: always make HEAD@{0} show indexed selectors
reflog-walk: clean up "flag" field of commit_reflog struct
log: respect date_mode_explicit with --format:%gd
t1411: add more selector index/date tests
Diffstat (limited to 'log-tree.c')
-rw-r--r-- | log-tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/log-tree.c b/log-tree.c index 44f026837..376d97317 100644 --- a/log-tree.c +++ b/log-tree.c @@ -629,10 +629,9 @@ void show_log(struct rev_info *opt) * graph info here. */ show_reflog_message(opt->reflog_info, - opt->commit_format == CMIT_FMT_ONELINE, - opt->date_mode_explicit ? - opt->date_mode : - DATE_NORMAL); + opt->commit_format == CMIT_FMT_ONELINE, + opt->date_mode, + opt->date_mode_explicit); if (opt->commit_format == CMIT_FMT_ONELINE) return; } @@ -652,6 +651,7 @@ void show_log(struct rev_info *opt) if (ctx.need_8bit_cte >= 0) ctx.need_8bit_cte = has_non_ascii(opt->add_signoff); ctx.date_mode = opt->date_mode; + ctx.date_mode_explicit = opt->date_mode_explicit; ctx.abbrev = opt->diffopt.abbrev; ctx.after_subject = extra_headers; ctx.preserve_subject = opt->preserve_subject; |