| 156 | } |
| 157 | |
| 158 | static bool is_valid_commit(const std::string & hash) { |
| 159 | return is_hex_string(hash, 40); |
| 160 | } |
| 161 | |
| 162 | static bool is_valid_oid(const std::string & oid) { |
| 163 | return is_hex_string(oid, 40) || is_hex_string(oid, 64); |
no test coverage detected