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

Function token_len_without_separator

trailer.c:101–106  ·  view source on GitHub ↗

* Return the length of the string not including any final * punctuation. E.g., the input "Signed-off-by:" would return * 13, stripping the trailing punctuation but retaining * internal punctuation. */

Source from the content-addressed store, hash-verified

99 * internal punctuation.
100 */
101static size_t token_len_without_separator(const char *token, size_t len)
102{
103 while (len > 0 && !isalnum(token[len - 1]))
104 len--;
105 return len;
106}
107
108static int same_token(struct trailer_item *a, struct arg_item *b)
109{

Callers 2

same_tokenFunction · 0.85
parse_trailerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected