blob: 79217d8a56193c6ba4a3406ec6cbd04abf19fec3 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-sh-setup(1)
2===============
3
4NAME
5----
Junio C Hamano01078922006-03-10 00:31:476git-sh-setup - Common git shell script setup code
Junio C Hamano1a4e8412005-12-27 08:17:237
8SYNOPSIS
9--------
10'git-sh-setup'
11
12DESCRIPTION
13-----------
14
15Sets up the normal git environment variables and a few helper functions
Junio C Hamano341071d2006-06-04 07:24:4816(currently just "die()"), and returns OK if it all looks like a git archive.
Junio C Hamano1a4e8412005-12-27 08:17:2317So, to make the rest of the git scripts more careful and readable,
18use it as follows:
19
20-------------------------------------------------
21. git-sh-setup || die "Not a git archive"
22-------------------------------------------------
23
24Author
25------
26Written by Linus Torvalds <torvalds@osdl.org>
27
28Documentation
29--------------
30Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
31
32GIT
33---
34Part of the gitlink:git[7] suite
35