MCPcopy Index your code
hub / github.com/git/git / get_format_by_name

Function get_format_by_name

gpg-interface.c:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126static struct gpg_format *use_format = &gpg_format[0];
127
128static struct gpg_format *get_format_by_name(const char *str)
129{
130 for (size_t i = 0; i < ARRAY_SIZE(gpg_format); i++)
131 if (!strcmp(gpg_format[i].name, str))
132 return gpg_format + i;
133 return NULL;
134}
135
136static struct gpg_format *get_format_by_sig(const char *sig)
137{

Callers 2

valid_signature_formatFunction · 0.85
git_gpg_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected