• Jeff King's avatar
    date: add "unix" format · 642833db
    Jeff King authored
    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: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    642833db
date.c 27.1 KB