date: clarify --date=raw description
authorJunio C Hamano <gitster@pobox.com>
Wed, 27 Jul 2016 20:07:29 +0000 (13:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jul 2016 21:15:51 +0000 (14:15 -0700)
"... in the internal raw Git format `%s %z` format." was clunky in
repeating "format" twice, and would not have helped those who do not
immediately get that these are strftime(3) conversion specifiers.

Explain them with words, and demote the mention of `%s %z` to a
hint to help those who know them.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/rev-list-options.txt
index fd86ed12dc97df66fda44bdae85f1d260294bf54..bee54a617787607ac217da7af97c5e34b5100578 100644 (file)
@@ -746,7 +746,11 @@ format, often found in email messages.
 +
 `--date=short` shows only the date, but not the time, in `YYYY-MM-DD` format.
 +
-`--date=raw` shows the date in the internal raw Git format `%s %z` format.
+`--date=raw` shows the date as seconds since the epoch (1970-01-01
+00:00:00 UTC), followed by a space, and then the timezone as an offset
+from UTC (a `+` or `-` with four digits; the first two are hours, and
+the second two are minutes). I.e., as if the timestamp were formatted
+with `strftime("%s %z")`).
 Note that the `-local` option does not affect the seconds-since-epoch
 value (which is always measured in UTC), but does switch the accompanying
 timezone value.