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

Function token_from_item

trailer.c:606–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606static const char *token_from_item(struct arg_item *item, char *tok)
607{
608 if (item->conf.key)
609 return item->conf.key;
610 if (tok)
611 return tok;
612 return item->conf.name;
613}
614
615static int token_matches_item(const char *tok, struct arg_item *item, size_t tok_len)
616{

Callers 2

parse_trailerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected