Merge branch 'rd/doc-default-date-format'

Update --date=default documentation.

* rd/doc-default-date-format:
  rev-list: clarify git-log default date format
This commit is contained in:
Junio C Hamano
2023-02-24 11:32:29 -08:00

View File

@ -1100,12 +1100,12 @@ preferred format. See the `strftime` manual for a complete list of
format placeholders. When using `-local`, the correct syntax is format placeholders. When using `-local`, the correct syntax is
`--date=format-local:...`. `--date=format-local:...`.
`--date=default` is the default format, and is similar to `--date=default` is the default format, and is based on ctime(3)
`--date=rfc2822`, with a few exceptions: output. It shows a single line with three-letter day of the week,
three-letter month, day-of-month, hour-minute-seconds in "HH:MM:SS"
format, followed by 4-digit year, plus timezone information, unless
the local time zone is used, e.g. `Thu Jan 1 00:00:00 1970 +0000`.
-- --
- there is no comma after the day-of-week
- the time zone is omitted when the local time zone is used
ifdef::git-rev-list[] ifdef::git-rev-list[]
--header:: --header::