diff options
author | Brandon Williams <bmwill@google.com> | 2017-01-27 18:02:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-01 13:46:53 -0800 |
commit | f0dd042148233ad4681b29f35f3bc3ba3b962474 (patch) | |
tree | d748ff9b661d486df12146ee48e542359f2690a5 /t/t4139-apply-escape.sh | |
parent | attr: push the bare repo check into read_attr() (diff) | |
download | tgif-f0dd042148233ad4681b29f35f3bc3ba3b962474.tar.xz |
attr: reformat git_attr_set_direction() function
Move the 'git_attr_set_direction()' up to be closer to the variables
that it modifies as well as a small formatting by renaming the variable
'new' to 'new_direction' so that it is more descriptive.
Update the comment about how 'direction' is used to read the state of
the world. It should be noted that callers of
'git_attr_set_direction()' should ensure that other threads are not
making calls into the attribute system until after the call to
'git_attr_set_direction()' completes. This function essentially acts as
reset button for the attribute system and should be handled with care.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4139-apply-escape.sh')
0 files changed, 0 insertions, 0 deletions