I am trying to recreate the Git format setting of oneline
as a format string (in order to extend it further).
So for this command
git log --format=oneline
What is the format string equivalent of oneline
?
The closest I can get is
git log --format="%h %d %s"
However, this does not produce any colors. I know I can hard code some of them, like the commit hash. But the %d has dynamic colors, depending on what it shows.