[PATCH] Fix git-init-db creating crap directories.
[git/dscho.git] / Documentation / git-sh-setup.txt
blobfcf2cdfd5468b8ac22082844b40b8ded3630c8d6
1 git-sh-setup(1)
2 ===============
4 NAME
5 ----
6 git-sh-setup - Common git shell script setup code.
8 SYNOPSIS
9 --------
10 'git-sh-setup'
12 DESCRIPTION
13 -----------
15 Sets up the normal git environment variables and a few helper functions
16 (currently just "die()"), and returns ok if it all looks like a git archive.
17 So use it something like
19         . git-sh-setup || die "Not a git archive"
21 to make the rest of the git scripts more careful and readable.
23 Author
24 ------
25 Written by Linus Torvalds <torvalds@osdl.org>
27 Documentation
28 --------------
29 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
31 GIT
32 ---
33 Part of the link:git.html[git] suite