Don't mark repo as dirty if only untracked files

This adds an option to branch segment, by default set to True
Do not call `.strip()` two times. Also do not compare any value with `False`.