MCPcopy Create free account
hub / github.com/git/git / get_format_by_sig

Function get_format_by_sig

gpg-interface.c:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static struct gpg_format *get_format_by_sig(const char *sig)
137{
138 int j;
139
140 for (size_t i = 0; i < ARRAY_SIZE(gpg_format); i++)
141 for (j = 0; gpg_format[i].sigs[j]; j++)
142 if (starts_with(sig, gpg_format[i].sigs[j]))
143 return gpg_format + i;
144 return NULL;
145}
146
147const char *get_signature_format(const char *buf)
148{

Callers 3

get_signature_formatFunction · 0.85
check_signatureFunction · 0.85
parse_signed_bufferFunction · 0.85

Calls 1

starts_withFunction · 0.85

Tested by

no test coverage detected