msysgit/msysgit — pull request #30 by salsifis (2012-06-18 10:21:23+00:00)
Title: Bash PS1 nonprinting characters correctly enclosed

\[ and \] are used for enclosing nonprinting characters in bash PS1.
Enclosing printable characters inside those bracket pairs results in
bad behaviour when the PWD contains characters from an extended
character set (not strictly in ASCII).

Also, section made more readable, the if section focuses about what
differs.