author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Sat, 24 Jul 2010 12:11:58 +0000 (07:11 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 4 Aug 2010 18:21:44 +0000 (11:21 -0700) | ||
commit | 98937bef1bf1c8eea90c209c601d4338a43a3479 | |
tree | 4a99ff181482247f236935f192e76e5d409bf56c | tree | snapshot |
parent | 3f8099fce7779631fe8827a8979d7b57629a36de | commit | diff |
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>
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 | diff | blob | history |