Merge branch 'jk/maint-reflog-walk-count-vs-time' (early part) into next

"git log -g --format='%gd: %gs' refs/stash" (or worse yet, the same
command line with refs/stash@{0}) was affected by log.date=iso settings
and failed to show stash@{0}, stash@{1},... in the output.  Clarify the
DWIM rules to give the most precedence to how the starting point is
specified (i.e. stash@{0} vs stash@{now}), and then use the presense
of "--date=<format>" command line option as the secondary clue to decide
whether reflog entries are shown with numbers or timestamps.

By Jeff King
* 'jk/maint-reflog-walk-count-vs-time' (early part):
  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
This commit is contained in:
Junio C Hamano
2012-05-07 15:06:06 -07:00
6 changed files with 72 additions and 4 deletions

View File

@@ -84,6 +84,7 @@ struct pretty_print_context {
const char *after_subject;
int preserve_subject;
enum date_mode date_mode;
unsigned date_mode_explicit:1;
int need_8bit_cte;
int show_notes;
struct reflog_walk_info *reflog_info;