| 680 | static enum git_attr_direction direction; |
| 681 | |
| 682 | void 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 | |
| 693 | static struct attr_stack *read_attr_from_file(const char *path, unsigned flags) |
| 694 | { |
no test coverage detected