]> git.ipfire.org Git - thirdparty/git.git/commit - t/t0006-date.sh
date: add "unix" format
authorJeff King <peff@peff.net>
Fri, 22 Jul 2016 19:51:49 +0000 (15:51 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Jul 2016 21:15:51 +0000 (14:15 -0700)
commit642833db78aa5d7a72677aa9a9b013fb9a880f19
tree78867445ed1858ddfe222521fbeba775c9d545e2
parent1a2a1e8eb93de2b89a32a52980ec7614fe9d154c
date: add "unix" format

We already have "--date=raw", which is a Unix epoch
timestamp plus a contextual timezone (either the author's or
the local). But one may not care about the timezone and just
want the epoch timestamp by itself. It's not hard to parse
the two apart, but if you are using a pretty-print format,
you may want git to show the "finished" form that the user
will see.

We can accomodate this by adding a new date format, "unix",
which is basically "raw" without the timezone.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/rev-list-options.txt
builtin/blame.c
cache.h
date.c
t/t0006-date.sh