• L
    Support 'raw' date format · 7dff9b30
    Linus Torvalds 提交于
    Talking about --date, one thing I wanted for the 1234567890 date was to
    get things in the raw format. Sure, you get them with --pretty=raw, but it
    felt a bit sad that you couldn't just ask for the date in raw format.
    
    So here's a throw-away patch (meaning: I won't be re-sending it, because I
    really don't think it's a big deal) to add "--date=raw". It just prints
    out the internal raw git format - seconds since epoch plus timezone (put
    another way: 'date +"%s %z"' format)
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    7dff9b30
date.c 19.1 KB