Skip to content

localized date format

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3show-branch: use DATE_RELATIVE instead of magic numberbuiltin/show-branch.c+1 -10 replies
2/3convert "enum date_mode" into a structarchive.c builtin/blame.c builtin/commit.c +20 more+97 -777 replies
3/3introduce "format" date-modeDocumentation/rev-list-options.txt builtin/blame.c cache.h +5 more+61 -117 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchEric Sunshine
1/3
2/3
3/3Clever-idea-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] localized date format
Quoted 5 lines · H.Merijn Brand
Quoted 4 lines

That being said, I do not think it would be wrong to have a date-mode that just showed strftime("%c"), or some other arbitrary strftime string. You could then set log.date as appropriate for human consumption.

Quoted 7 lines

Yes please :)

--date=lc
--date=lc_time
--date=locale

all spring to mind as valid options

Here's a patch series that allows --date=format:%c, which is the same thing. We could possibly do --date=locale as syntactic sugar, I guess.

[1/3]: show-branch: use DATE_RELATIVE instead of magic number [2/3]: convert "enum date_mode" into a struct [3/3]: introduce "format" date-mode

-Peff