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

Function excluded_header_field

commit.c:1497–1509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1495}
1496
1497static int excluded_header_field(const char *field, size_t len, const char **exclude)
1498{
1499 if (!exclude)
1500 return 0;
1501
1502 while (*exclude) {
1503 size_t xlen = strlen(*exclude);
1504 if (len == xlen && !memcmp(field, *exclude, xlen))
1505 return 1;
1506 exclude++;
1507 }
1508 return 0;
1509}
1510
1511static struct commit_extra_header *read_commit_extra_header_lines(
1512 const char *buffer, size_t size,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected