Print a string based on git status, useful for building shell prompts