summaryrefslogtreecommitdiff
path: root/Documentation/config
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2022-02-02 12:15:09 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-02 13:09:05 -0800
commit59d9442f28ca8874db93aca961225489328444ac (patch)
treed3e6370ba7dd30e6e15b048b366347c8148c8b7c /Documentation/config
parentSync with Git 2.35.1 (diff)
downloadtgif-59d9442f28ca8874db93aca961225489328444ac.tar.xz
completion tests: re-source git-completion.bash in a subshell
Change tests of git-completion.bash that re-source it to do so inside a subshell. Re-sourcing it will clobber variables it sets, and in the case of the "GIT_COMPLETION_SHOW_ALL=1" test added in ca2d62b7879 (parse-options: don't complete option aliases by default, 2021-07-16) change the behavior of the completion persistently. Aside from the addition of "(" and ")" on new lines this is an indentation-only change, only the "(" and ")" lines are changed under "git diff -w". So let's change that test, and for good measure do the same for the three tests that precede it, which were added in 8b0eaa41f23 (completion: clear cached --options when sourcing the completion script, 2018-03-22). The may not be wrong, but doing this establishes a more reliable pattern for future tests, which might use these as a template to copy. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config')
0 files changed, 0 insertions, 0 deletions