Checks if a string looks like a git SHA-1 hash.
String to check
true if the string matches the format of a 40-character SHA-1 hash
Checks if a string looks like a git SHA-1 hash.