In Magit log buffer commits (one per line) are shown with relative date. This is nice for recent commits, but makes little sense for older changes. In particular, this makes it annoyingly hard to relate commit dates to specific date, e.g. to find answer to question "which change might have broken the release on 3rd of April?".

Is it possible to somehow change the way commit dates are shown? I only found magit-duration-spec, but that's not exactly what I need.

2 Answers 2


This feature is now accessible through magit-log-margin. See this ticket and this commit.

  • Is there an example of how this variable should be set to show absolute date?
    – Liam
    Commented Jul 22, 2018 at 1:26
  • 8
    @Liam I don't see any examples, but here's a section about it in the manual. Mine is set to (t "%Y-%m-%d %H:%M " magit-log-margin-width t 18), which looks like this in the Customize interface and the date looks like this as a result.
    – GDP2
    Commented Jul 23, 2018 at 4:18

If you need to be sure about the author and/or commit date of a particular commit, then you can always just show that commit in a separate buffer by pressing RET with point on that commit in the log.

But that's not very convenient if you have to do it a lot of course. I have started working on making this more flexible.

  • I have the same problem and I'm glad to hear that you are working on this! Commented Sep 12, 2015 at 13:38
  • Indeed, it would be very nice to have a way to display absolute dates instead of durations
    – Clément
    Commented Feb 29, 2016 at 14:44
  • 4
    @tarsius Has this been implemented? I can't find a reference to it in the documentation. Thanks for Magit, it is amazing :)
    – thatismatt
    Commented Aug 15, 2016 at 8:05
  • No, I forgot about this. Could you please open a feature request, so it does not happen again.
    – tarsius
    Commented Aug 16, 2016 at 11:07
  • 1
    @thatismatt The specific variable which has this feature now is magit-log-margin.
    – GDP2
    Commented Apr 4, 2018 at 6:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.