The goal is to get an unambiguous status that can be evaluated in a shell command.
I tried git status but it always returns 0, even if there are items
git status
I'm using this in a script to have:
1 when there is a diff or untracked files
[ -z "$(git status --porcelain)" ]