simplifying git checks to improve PS1 rendering performance