diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-03-13 21:10:45 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-03-14 14:24:16 -0700 |
| commit | 16ac8b8db6ec7400719db6b5c76edaab33c47606 (patch) | |
| tree | 1af01aa31bafec1edaf37e125fbbad212d3b78e3 /builtin/commit.c | |
| parent | setup_git_directory_1(): avoid changing global state (diff) | |
| download | git-16ac8b8db6ec7400719db6b5c76edaab33c47606.tar.gz git-16ac8b8db6ec7400719db6b5c76edaab33c47606.zip | |
setup: introduce the discover_git_directory() function
We modified the setup_git_directory_gently_1() function earlier to make
it possible to discover the GIT_DIR without changing global state.
However, it is still a bit cumbersome to use if you only need to figure
out the (possibly absolute) path of the .git/ directory. Let's just
provide a convenient wrapper function with an easier signature that
*just* discovers the .git/ directory.
We will use it in a subsequent patch to fix the early config.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
