Scadge Scadge - 3 months ago 20
Git Question

List of commands with --porcelain option available

Is there a public official (or maybe not) list of

git
commands, for which
--porcelain
option is available? Or should I manually review each of them in the porcelain commands list?

I've managed to google the following three:

git status --porcelain
git push --porcelain
git blame --porcelain


But is there any more? And if not, can I find somewhere the information on whether any additional would appear and when?

UPD:
So here is the full list of collected currently available commands with
--porcelain
option (based on the answers below):

git status --porcelain
git push --porcelain
git blame --porcelain
git commit --porcelain
git worktree list --porcelain


Will try to keep it up-to-date with the new information available. Please if you find any new, leave a response in comments or as an answer.

Answer

You can combine:

That will confirm you also have:

git commit --porcelain
git worktree list --porcelain

For more on the meaning of porcelain, see my answer "What does the term “porcelain” mean in Git?"

The meaning of --porcelain here is "produce output suitable for consumption by porcelain scripts".

Note that git blame options can be passed around to other commands. That is why git annotate also has a --porcelain option.

Also, grepping for porcelain in Documentation would return git ls-files, which has not such an option, but refers instead to git-status --porcelain and git-diff-files --name-status as more user-friendly alternatives.