Re: git --format anyone ?
- From
- John 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.