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

Function standard_header_field

commit.c:1488–1495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1486}
1487
1488static inline int standard_header_field(const char *field, size_t len)
1489{
1490 return ((len == 4 && !memcmp(field, "tree", 4)) ||
1491 (len == 6 && !memcmp(field, "parent", 6)) ||
1492 (len == 6 && !memcmp(field, "author", 6)) ||
1493 (len == 9 && !memcmp(field, "committer", 9)) ||
1494 (len == 8 && !memcmp(field, "encoding", 8)));
1495}
1496
1497static int excluded_header_field(const char *field, size_t len, const char **exclude)
1498{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected