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

Function parse_capability

imap-send.c:670–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670static void parse_capability(struct imap *imap, char *cmd)
671{
672 char *arg;
673 unsigned i;
674
675 imap->caps = 0x80000000;
676 while ((arg = next_arg(&cmd)))
677 for (i = 0; i < ARRAY_SIZE(cap_list); i++)
678 if (!strcmp(cap_list[i], arg))
679 imap->caps |= 1 << i;
680 imap->rcaps = imap->caps;
681}
682
683static int parse_response_code(struct imap_store *ctx, struct imap_cmd_cb *cb,
684 char *s)

Callers 2

parse_response_codeFunction · 0.70
get_cmd_resultFunction · 0.70

Calls 1

next_argFunction · 0.85

Tested by

no test coverage detected