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

Re: git --format anyone ?

From
JEJohn Emmas <john@creativepost.co.uk>
Date
Mar 16, 2026, 15:09 UTC
Message-ID
<a6d27f02-bd40-4901-bb0c-0d3a763b512c@creativepost.co.uk>
In-Reply-To
<ff0e899a-3d8b-4f46-8585-55881546423b@app.fastmail.com>
Many thanks Kristoffer,

I'd just posted some further information after realising there's Git forum available but your reply makes a lot of sense so thanks for letting me know.

John
On 16/03/2026 11:45, Kristoffer Haugsbakk wrote:
Show 14 quoted lines
> The `git` command itself does not have a `--format` option. Some
> subcommands do like git-log(1).
>
>      git log --format=<something>
>
>> I'm working on a project which requires me to run "git --format" (with
>> various parameters of course).
> `git log --format=<something>` is for formatting log output. But since a
> project “requires it” could this be formatting in the sense of formatting
> source code?
>
> You can for example use the third-party git-clang-format(1) on this
> project. But it is third-party. It is not part of the git(1) suite of
> commands.
Previous: Kristoffer Haugsbakk
Message 3 of 3 in “git --format anyone ?”
  1. John EmmasMar 16, 2026
  2. Kristoffer HaugsbakkMar 16, 2026
  3. John EmmasMar 16, 2026

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.