]> granicus.if.org Git - git/commit
Merge branch 'js/alias-early-config'
authorJunio C Hamano <gitster@pobox.com>
Sat, 24 Jun 2017 21:28:39 +0000 (14:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 24 Jun 2017 21:28:40 +0000 (14:28 -0700)
commit1c3d87cf5594cc7e57d71c7b2d99dd4982285951
tree9a461af87a2e6c7191cd158093b37f0eea6f0c2a
parent9bca0e5513579386384c064c5cdc45980b6774df
parenta9bcf6586d1a4888aea91553d73cda20494b8335
Merge branch 'js/alias-early-config'

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
git.c
help.c
setup.c
t/t1300-repo-config.sh
t/t1308-config-set.sh