@@ -74,10 +74,63 @@ and later he explained:
7474Hopefully Max will send an updated patch that will take Junio's
7575suggestion into account.
7676
77- <!-- -
77+
7878### Support
79- -->
8079
80+ * [ Several date related issues] ( http://search.gmane.org/?query=several+date+related+issues&group=gmane.comp.version-control.git )
81+
82+ Rigth now ` git log ` supports the following date related otions:
83+
84+ ```
85+ --date-order
86+
87+ --author-date-order
88+
89+ --date=(relative|local|default|iso|iso-strict|rfc|short|raw)
90+ ```
91+
92+ But H.Merijn Brand noticed two problems with those options.
93+
94+ First he found that dates shown by ` git log --date=local ` do not
95+ respect the LC_TIME locale configuration.
96+
97+ Jeff King, aka Peff, replied:
98+
99+ > Right, we use our own routines for formatting the dates, and not
100+ > strftime. And it probably should stay that way in general, as git's
101+ > output is often meant to be parsed.
102+ >
103+ > That being said, I do not think it would be wrong to have a date-mode
104+ > that just showed strftime("%c"), or some other arbitrary strftime
105+ > string. You could then set log.date as appropriate for human
106+ > consumption.
107+
108+ To that H.Merijn suggested the implementation of the following options
109+ ` --date=lc ` , ` --date=lc_time ` and ` --date=locale ` .
110+
111+ The second issue was that ` git log ` with either ` --date-order ` or
112+ ` --author-date-order ` does not order the commit by date.
113+
114+ To that Peff replied:
115+
116+ > Correct. The documentation says:
117+ >
118+ > --date-order
119+ > Show no parents before all of its children are shown, but otherwise
120+ > show commits in the commit timestamp order.
121+ >
122+ > [ ...]
123+ >
124+ > There is not a simple way to show commits in arbitrary order without
125+ > respect to parentage. I think you'd have to do something like:
126+ >
127+ > git log --format='%at %H' |
128+ > sort -rn |
129+ > cut -d' ' -f2 |
130+ > git log --stdin --no-walk
131+
132+ And H.Merijn said that the option names are misleading, and suggested
133+ a gitk option for Peff's script.
81134
82135## Releases
83136
0 commit comments