This is duplication of work: perhaps `is_on_git()` could store the value of git_dir for later referencing by `get_git_progress()`? That might have a desirable impact on performance when in hostile environments e.g. cygwin.