setup: split off a function to handle ordinary .git directories
commit98937bef1bf1c8eea90c209c601d4338a43a3479
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 24 Jul 2010 12:11:58 +0000 (24 07:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Aug 2010 18:21:44 +0000 (4 11:21 -0700)
tree4a99ff181482247f236935f192e76e5d409bf56c
parent3f8099fce7779631fe8827a8979d7b57629a36de
setup: split off a function to handle ordinary .git directories

Finish the clean-up of setup_git_directory_gently() by splitting the
last case of validation+setup (global variables, prefix, check_format,
set_git_dir) into its own function.  Now setup_git_git_directory_gently
itself takes care of discovery only and the functions that pick up
from there are nearby in the source file so they can be easily
compared.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c