This will simplify methods that execute git commands that can take a ref or an SHA. Add some string constants so there is only one place for the type strings.