]> granicus.if.org Git - git/commitdiff
Merge branch 'js/early-config'
authorJunio C Hamano <gitster@pobox.com>
Fri, 17 Mar 2017 20:50:28 +0000 (13:50 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Mar 2017 20:50:28 +0000 (13:50 -0700)
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

1  2 
cache.h
config.c
setup.c

diff --cc cache.h
Simple merge
diff --cc config.c
Simple merge
diff --cc setup.c
Simple merge