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

Function git_attr_set_direction

attr.c:682–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680static enum git_attr_direction direction;
681
682void git_attr_set_direction(enum git_attr_direction new_direction)
683{
684 if (is_bare_repository() && new_direction != GIT_ATTR_INDEX)
685 BUG("non-INDEX attr direction in a bare repo");
686
687 if (new_direction != direction)
688 drop_all_attr_stacks();
689
690 direction = new_direction;
691}
692
693static struct attr_stack *read_attr_from_file(const char *path, unsigned flags)
694{

Callers 5

merge_finalizeFunction · 0.85
merge_startFunction · 0.85
check_updatesFunction · 0.85
parse_treeish_argFunction · 0.85
cmd_check_attrFunction · 0.85

Calls 2

is_bare_repositoryFunction · 0.85
drop_all_attr_stacksFunction · 0.85

Tested by

no test coverage detected