| 691 | } |
| 692 | |
| 693 | static bool gf_oid_line(cbm_git_facts_t *facts, const cbm_git_bytes_t *bytes, char out[65], |
| 694 | cbm_git_facts_error_t *error) { |
| 695 | const unsigned char *text; |
| 696 | size_t n; |
| 697 | if (!gf_line(bytes, &text, &n) || !gf_oid(out, text, n, facts->identity.oid_hex_length)) |
| 698 | return gf_error(error, CBM_GIT_FACTS_COMMAND, "Git returned an invalid full object ID"); |
| 699 | return true; |
| 700 | } |
| 701 | |
| 702 | static bool gf_resolve(cbm_git_facts_t *facts, const char *ref, char out[65], |
| 703 | cbm_git_facts_error_t *error) { |
no test coverage detected