]> git.ipfire.org Git - thirdparty/git.git/commit
setup: split off a function to checks working dir for .git file
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 24 Jul 2010 11:20:15 +0000 (06:20 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jul 2010 05:09:11 +0000 (22:09 -0700)
commit93a00542eaeb40c31b4de2497f5413a2fc0f36f4
treefd50299c17606e237f5149e1bcd94a8a61fd065c
parente4e303479b62e474c52ee1f9edd265d7333117d9
setup: split off a function to checks working dir for .git file

The repository discovery procedure looks something like this:

while (same filesystem) {
check .git in working dir
check .
chdir(..)
}

Add a function for the first step to make the actual code look a bit
closer to that pseudocode.

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