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

Re: Cleaning up log messages

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 27, 2008, 20:16 UTC
Message-ID
<alpine.DEB.1.00.0807272214120.5526@eeepc-johanness>
In-Reply-To
<9e4733910807271231s7ff6acf8rf5848cc1a31f3afc@mail.gmail.com>
Hi,
On Sun, 27 Jul 2008, Jon Smirl wrote:
Show 8 quoted lines
> How do you do it with git log? --pretty overrides the default of medium
> 
> --pretty[=<format>]
> 
>     Pretty-print the contents of the commit logs in a given format,
> where <format> can be one of oneline, short, medium, full, fuller,
> email, raw and format:<string>. When omitted, the format defaults to
> medium.
You get it _almost_ with

$ f='commit %H%nAuthor: %aN <%ae>%nDate: %ad%n%n%s%n%n%b' $ git log --pretty="format:$f"

The only difference being that the commit message is not indented. If you really need that, it is easy to add.

But I rather doubt that you need it, as you want to make statistics, and therefore need to pipe the output into a script anyway.

Ciao, Dscho

Previous: Jon SmirlNext: Junio C Hamano
Message 8 of 10 in “Cleaning up log messages”
  1. Jon SmirlJul 27, 2008
  2. Johannes SchindelinJul 27, 2008
  3. Jon SmirlJul 27, 2008
  4. Petr BaudisJul 27, 2008
  5. Jon SmirlJul 27, 2008
  6. Johannes SchindelinJul 27, 2008
  7. Jon SmirlJul 27, 2008
  8. Johannes SchindelinJul 27, 2008
  9. Junio C HamanoJul 27, 2008
  10. Jon SmirlJul 27, 2008

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.