Thread (5 messages) 5 messages, 3 authors, 2016-10-31

Re: [git rebase -i] show time and author besides commit hash and message?

From: Jeff King <hidden>
Date: 2016-10-31 15:58:10

On Mon, Oct 31, 2016 at 11:27:33PM +0800, ryenus wrote:
quoted
It is possible to change the format globally via config option
rebase.instructionFormat:

    $ git config rebase.instructionFormat "%an (%ad): %s"

The format is the same as for 'git log'. This one outputs author
name, date, and the first line of commit message.
Thanks for the prompt response!
I tried immediately, it works just as you have pointed out.

Just it seems coloring is not supported? probably because
we're inside an editor?
Yes. If git outputs its own ANSI codes there, they generally look bad in
an editor (interpreted as raw bytes, not as coloring). Any existing
coloring you see is likely due to syntax highlighting done by your
editor. You can extend that to match your desired format, but exactly
how would depend on which editor you're using.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help