Volume XXII, number 280Wednesday, October 7, 2026Latest message 1 hour ago

The Git List

News and archive of git@vger.kernel.org, since April 2005

git --format anyone ?

3 messages between Mar 16, 2026 and Mar 16, 2026, from John Emmas, Kristoffer Haugsbakk.

Plain Markdown or JSON for tools and agents.

John EmmasMar 16, 2026, 10:12 UTC on lore

I'm hoping this is the right mailing list (I'm using a product called Git for Windows and its logo looks the same on your website!)

I'm working on a project which requires me to run "git --format" (with various parameters of course). I'm currently running version 2.51.2 which looks fairly recent and if I simply type "git" it displays a list of available options - but it doesn't deem to offer an option called 'format' :-(

I gather that the latest version is 2.53.0 so would it be worthwhile for me to upgrade? i.e. would that then offer me git --format? Thanks,

John
Kristoffer HaugsbakkMar 16, 2026, 11:45 UTC in reply to John Emmas on lore

Re: git --format anyone ?

On Mon, Mar 16, 2026, at 11:12, John Emmas wrote:
Show 11 quoted lines
> I'm hoping this is the right mailing list (I'm using a product called
> Git for Windows and its logo looks the same on your website!)
>
> I'm working on a project which requires me to run "git --format" (with
> various parameters of course). I'm currently running version 2.51.2
> which looks fairly recent and if I simply type "git" it displays a list
> of available options - but it doesn't deem to offer an option called
> 'format' :-(
>
> I gather that the latest version is 2.53.0 so would it be worthwhile for
> me to upgrade? i.e. would that then offer me git --format? Thanks,

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.

John EmmasMar 16, 2026, 15:09 UTC in reply to Kristoffer Haugsbakk on lore

Re: git --format anyone ?

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.

Back to recent threads