git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jeff King <peff@peff.net>
Date
Oct 31, 2016, 15:57 UTC
Message-ID
<20161031155709.nimnuucq75kn6mau@sigill.intra.peff.net>
In-Reply-To
<CAKkAvay4YuRuGhub6W308+DmrZtrO3+NWu8NvfB--Mb9Z59Xzw@mail.gmail.com>
On Mon, Oct 31, 2016 at 11:27:33PM +0800, ryenus wrote:
Show 13 quoted lines
> > 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
Previous: ryenus
Message 5 of 5 in “[git rebase -i] show time and author besides commit hash and message?”
  1. ryenusOct 30, 2016
  2. Alexei LozovskyOct 30, 2016
  3. doc: fix missing "::" in config listJeff King, Oct 30, 2016
  4. ryenusOct 31, 2016
  5. Jeff KingOct 31, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.