diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-03 18:01:27 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-03 18:01:27 (GMT) |
commit | d939af12bd96db7ad3e671a0585ad8570aa7e9d3 (patch) | |
tree | 5772ac1192ed299db657ffcfbc71c318521db653 /Documentation | |
parent | 980a3d3dd742d534b394b04e578c2de5e3ee4793 (diff) | |
parent | e4f031e34b08e3217c10942e682920a6939308a0 (diff) | |
download | git-d939af12bd96db7ad3e671a0585ad8570aa7e9d3.zip git-d939af12bd96db7ad3e671a0585ad8570aa7e9d3.tar.gz git-d939af12bd96db7ad3e671a0585ad8570aa7e9d3.tar.bz2 |
Merge branch 'jk/date-mode-format'
Teach "git log" and friends a new "--date=format:..." option to
format timestamps using system's strftime(3).
* jk/date-mode-format:
strbuf: make strbuf_addftime more robust
introduce "format" date-mode
convert "enum date_mode" into a struct
show-branch: use DATE_RELATIVE instead of magic number
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/rev-list-options.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt index 77ac439..a9b808f 100644 --- a/Documentation/rev-list-options.txt +++ b/Documentation/rev-list-options.txt @@ -727,6 +727,11 @@ format, often found in email messages. + `--date=raw` shows the date in the internal raw Git format `%s %z` format. + +`--date=format:...` feeds the format `...` to your system `strftime`. +Use `--date=format:%c` to show the date in your system locale's +preferred format. See the `strftime` manual for a complete list of +format placeholders. ++ `--date=default` shows timestamps in the original time zone (either committer's or author's). |