`git status`. This essentially has a "prompt" mode with `--porcelain`, which can even print branch and stash state, so it features all of the information for a prompt. Prompts have been mentioned in adding the v2 porcelain format[0]
It will call the fsmonitor hook configured in core.fsmonitor - this is supposed to speed up figuring out which files to check.
The official git-prompt.sh calls `git diff`, which will do the same[1].
It will call the fsmonitor hook configured in core.fsmonitor - this is supposed to speed up figuring out which files to check.
The official git-prompt.sh calls `git diff`, which will do the same[1].
[0]: https://github.com/git/git/commit/00d27937bf0348e7da615f04b6... [1]: https://github.com/git/git/blob/11cfe552610386954886543f5de8...