diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-23 00:15:25 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-23 00:15:25 +0300 |
commit | 9eafe86d58a2d2b30e8b33f6697519fc7f104443 (patch) | |
tree | 511646eac969baa9feef1b949696a5b6a66e94d8 /Documentation/rev-list-options.txt | |
parent | 1565b18791b4b27ab464764d37b86a673165ab07 (diff) | |
parent | 6eced3ec5e5d7fbe61de2791e2627b1acf1246b3 (diff) |
Merge branch 'rs/strbuf-addftime-zZ'
As there is no portable way to pass timezone information to
strftime, some output format from "git log" and friends are
impossible to produce. Teach our own strbuf_addftime to replace %z
and %Z with caller-supplied values to help working around this.
* rs/strbuf-addftime-zZ:
date: use localtime() for "-local" time formats
t0006: check --date=format zone offsets
strbuf: let strbuf_addftime handle %z and %Z itself
Diffstat (limited to 'Documentation/rev-list-options.txt')
-rw-r--r-- | Documentation/rev-list-options.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt index 9c44eae55d..a6cf9eb380 100644 --- a/Documentation/rev-list-options.txt +++ b/Documentation/rev-list-options.txt @@ -769,7 +769,8 @@ timezone value. 1970). As with `--raw`, this is always in UTC and therefore `-local` has no effect. + -`--date=format:...` feeds the format `...` to your system `strftime`. +`--date=format:...` feeds the format `...` to your system `strftime`, +except for %z and %Z, which are handled internally. 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. When using `-local`, the correct syntax is |