summaryrefslogtreecommitdiff
path: root/compat/memmem.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2017-03-13 21:10:45 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-03-14 14:24:16 -0700
commit16ac8b8db6ec7400719db6b5c76edaab33c47606 (patch)
tree1af01aa31bafec1edaf37e125fbbad212d3b78e3 /compat/memmem.c
parentsetup_git_directory_1(): avoid changing global state (diff)
downloadtgif-16ac8b8db6ec7400719db6b5c76edaab33c47606.tar.xz
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 'compat/memmem.c')
0 files changed, 0 insertions, 0 deletions