How to add the date to git log --oneline --decorate --graph?
Description
I like the coloured output of
git log --oneline --decorate --graph
I simply want to add the date to the output (possibly in a dark grey colour).
I have not been able to do so. The closest I have come is:
git log --format="%h %d %ar %s" --graph
but the output is not coloured.
Adding the options --decorate
or --color=always
do not change anything.
I have seen the options in the man page:
%Cred: switch color to red
%Cgreen: switch color to green
%Cblue: switch color to blue
%Creset: reset color
%C(...): color specification, as described in color.branch.* config option
However, it doesn't say how to achieve the automatic colouring of the tags, branch and HEAD provided with the %d format.