git-commands: add gitIsDirty

a function that returns true if the Git repository is "dirty",
i.e. if "git status" returns something
git-commands: format examples output