| 35 | }; |
| 36 | |
| 37 | static char git_env_fold(char c) { |
| 38 | #ifdef _WIN32 |
| 39 | return (c >= 'a' && c <= 'z') ? (char)(c - 'a' + 'A') : c; |
| 40 | #else |
| 41 | return c; |
| 42 | #endif |
| 43 | } |
| 44 | |
| 45 | /* Does the name part of `entry` (up to '=' or `name_len` chars) equal `var`? */ |
| 46 | static bool git_env_name_equals(const char *entry, size_t name_len, const char *var) { |
no outgoing calls
no test coverage detected