Merge branch 'js/alias-early-config' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2017 20:58:57 +0000 (13:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2017 20:58:58 +0000 (13:58 -0700)
commit040746c061c1138222d7db1f9ace292ef1a0935d
tree1cd0b022889ba7e8bb3672e6950f90002cd451d0
parent49771171e5b2802413a8645e8d1a25fafa5eca9f
parenta9bcf6586d1a4888aea91553d73cda20494b8335
Merge branch 'js/alias-early-config' into maint

The code to pick up and execute command alias definition from the
configuration used to switch to the top of the working tree and
then come back when the expanded alias was executed, which was
unnecessarilyl complex.  Attempt to simplify the logic by using the
early-config mechanism that does not chdir around.

* js/alias-early-config:
  alias: use the early config machinery to expand aliases
  t7006: demonstrate a problem with aliases in subdirectories
  t1308: relax the test verifying that empty alias values are disallowed
  help: use early config when autocorrecting aliases
  config: report correct line number upon error
  discover_git_directory(): avoid setting invalid git_dir
config.c
help.c
setup.c
t/t1300-repo-config.sh