author | Eugene Letuchy <eugene@facebook.com> | |
Fri, 20 Feb 2009 22:51:11 +0000 (14:51 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 6 Mar 2009 06:56:13 +0000 (22:56 -0800) | ||
commit | 31653c1abc1ac80206db9efca56ff1969150d8fe | |
tree | 4123ee4faaf687db177dc42c0058a3166813b6f7 | tree | snapshot |
parent | 2d602e9179c7eb1a31a0abf41283c132e26a61af | commit | diff |
Make git blame's date output format configurable, like git log
Add the following:
- git config value blame.date that expects one of the git log date
formats (e.g. relative,local,default,iso,...);
- git blame command line option --date expects one of the git
log date formats;
- documentation in blame-options.txt;
- git blame uses the appropriate date.c functions and enums to
make sense of the date format and provide appropriate data;
git blame continues to line up the output columns by padding the date
column up to the max width of the chosen date format.
The date format for git blame without both blame.date and --date continues
to be ISO for backwards compatibility.
git annotate ignores the date format specifiers and continues to uses the
ISO format, as before.
Signed-off-by: Eugene Letuchy <eugene@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Add the following:
- git config value blame.date that expects one of the git log date
formats (e.g. relative,local,default,iso,...);
- git blame command line option --date expects one of the git
log date formats;
- documentation in blame-options.txt;
- git blame uses the appropriate date.c functions and enums to
make sense of the date format and provide appropriate data;
git blame continues to line up the output columns by padding the date
column up to the max width of the chosen date format.
The date format for git blame without both blame.date and --date continues
to be ISO for backwards compatibility.
git annotate ignores the date format specifiers and continues to uses the
ISO format, as before.
Signed-off-by: Eugene Letuchy <eugene@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/blame-options.txt | diff | blob | history | |
builtin-blame.c | diff | blob | history |