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

Function compute_builtin_attr

attr.c:1312–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310
1311
1312static const char *compute_builtin_attr(struct index_state *istate,
1313 const char *path,
1314 const struct git_attr *attr) {
1315 static const struct git_attr *object_mode_attr;
1316
1317 if (!object_mode_attr)
1318 object_mode_attr = git_attr("builtin_objectmode");
1319
1320 if (attr == object_mode_attr)
1321 return builtin_object_mode_attr(istate, path);
1322 return ATTR__UNSET;
1323}
1324
1325void git_check_attr(struct index_state *istate,
1326 const char *path,

Callers 1

git_check_attrFunction · 0.85

Calls 2

builtin_object_mode_attrFunction · 0.85
git_attrFunction · 0.70

Tested by

no test coverage detected