| 171 | } |
| 172 | |
| 173 | static bool gf_metadata_equal(cbm_git_facts_t *facts, const char *a, const char *b, bool *equal, |
| 174 | cbm_git_facts_error_t *error) { |
| 175 | if (!facts->batch_budget) { |
| 176 | *equal = strcmp(a, b) == 0; |
| 177 | return true; |
| 178 | } |
| 179 | size_t at = 0; |
| 180 | for (;;) { |
| 181 | if ((at & 65535u) == 0 && !gf_gate(facts, error)) |
| 182 | return false; |
| 183 | unsigned char x = (unsigned char)a[at], y = (unsigned char)b[at]; |
| 184 | if (x != y || !x) { |
| 185 | *equal = x == y; |
| 186 | return true; |
| 187 | } |
| 188 | at++; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /* These are compile-time project constants containing simple space-separated |
| 193 | * argv tokens, not user command text. No shell quoting or expansion is used. */ |
no test coverage detected