Merge branch 'js/early-config' into next
authorJunio C Hamano <gitster@pobox.com>
Tue, 14 Mar 2017 22:37:32 +0000 (15:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Mar 2017 22:37:32 +0000 (15:37 -0700)
commitce43b4a309acff55243e04ecf28675b76a08ef72
tree538f64bba4ec75d79b4bef31837485a4df0a7021
parent60bf8c5822dd8b3d073e998f03a7ed7f730d1428
parent5c4003ca3f0e9ac6d3c8aa3e387ff843bd440411
Merge branch 'js/early-config' into next

The start-up sequence of "git" needs to figure out some configured
settings before it finds and set itself up in the location of the
repository and was quite messy due to its "chicken-and-egg" nature.
The code has been restructured.

* js/early-config:
  setup.c: mention unresolved problems
  t1309: document cases where we would want early config not to die()
  setup_git_directory_gently_1(): avoid die()ing
  t1309: test read_early_config()
  read_early_config(): really discover .git/
  read_early_config(): avoid .git/config hack when unneeded
  setup: make read_early_config() reusable
  setup: introduce the discover_git_directory() function
  setup_git_directory_1(): avoid changing global state
  setup: prepare setup_discovered_git_dir() for the root directory
  setup_git_directory(): use is_dir_sep() helper
  t7006: replace dubious test
cache.h
config.c
setup.c