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

Function git_all_attrs

attr.c:1343–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343void git_all_attrs(struct index_state *istate,
1344 const char *path, struct attr_check *check)
1345{
1346 int i;
1347 const struct object_id *tree_oid = default_attr_source();
1348
1349 attr_check_reset(check);
1350 collect_some_attrs(istate, tree_oid, path, check);
1351
1352 for (i = 0; i < check->all_attrs_nr; i++) {
1353 const char *name = check->all_attrs[i].attr->name;
1354 const char *value = check->all_attrs[i].value;
1355 struct attr_check_item *item;
1356 if (value == ATTR__UNSET || value == ATTR__UNKNOWN)
1357 continue;
1358 item = attr_check_append(check, git_attr(name));
1359 item->value = value;
1360 }
1361}
1362
1363void attr_start(void)
1364{

Callers 1

check_attrFunction · 0.85

Calls 5

default_attr_sourceFunction · 0.85
attr_check_resetFunction · 0.85
collect_some_attrsFunction · 0.85
attr_check_appendFunction · 0.85
git_attrFunction · 0.70

Tested by

no test coverage detected