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

Re: Make "terminator behavior" the default with --pretty=format: ?

From
Hrvoje Nikšić <hniksic@gmail.com>
Date
Feb 22, 2011, 16:51 UTC
Message-ID
<AANLkTikGYOdJNGNXR1egPyMBhKpT=bby5fmr8MR9QTXt@mail.gmail.com>
In-Reply-To
<1298393039.2286.14.camel@wpalmer.simply-domain>
On Tue, Feb 22, 2011 at 5:43 PM, Will Palmer <wmpalmer@gmail.com> wrote:
Show 7 quoted lines
> On Tue, 2011-02-22 at 16:43 +0100, Hrvoje Nikšić wrote:
>> Is there a reason, other than backward compatibility, for
>> "--prety=format:" to have separator rather than terminator semantics?
>
> The "default behaviour" is the behaviour which occurs when one /doesn't/
> specify something. For example: --pretty="%H %an" uses terminator
> semantics.

I didn't know that you could simply omit the "format:". Is it documented anywhere? The docs say:

       --pretty[=<format>], --format[=<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.
Previous: Will PalmerNext: Jay Soffian
Message 3 of 4 in “Make "terminator behavior" the default with --pretty=format: ?”
  1. Hrvoje NikšićFeb 22, 2011
  2. Will PalmerFeb 22, 2011
  3. Hrvoje NikšićFeb 22, 2011
  4. Jay SoffianFeb 22, 2011

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.