]>
Commit | Line | Data |
---|---|---|
215a7ad1 JH |
1 | git-sh-setup(1) |
2 | =============== | |
7fc9d69f JH |
3 | |
4 | NAME | |
5 | ---- | |
215a7ad1 | 6 | git-sh-setup - Common git shell script setup code. |
7fc9d69f JH |
7 | |
8 | SYNOPSIS | |
9 | -------- | |
215a7ad1 | 10 | 'git-sh-setup' |
7fc9d69f JH |
11 | |
12 | DESCRIPTION | |
13 | ----------- | |
7fc9d69f | 14 | |
52a22d1e LAS |
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. | |
df8baa42 JF |
17 | So, to make the rest of the git scripts more careful and readable, |
18 | use it as follows: | |
7fc9d69f | 19 | |
df8baa42 JF |
20 | ------------------------------------------------- |
21 | . git-sh-setup || die "Not a git archive" | |
22 | ------------------------------------------------- | |
7fc9d69f JH |
23 | |
24 | Author | |
25 | ------ | |
26 | Written by Linus Torvalds <torvalds@osdl.org> | |
27 | ||
28 | Documentation | |
29 | -------------- | |
30 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. | |
31 | ||
32 | GIT | |
33 | --- | |
a7154e91 | 34 | Part of the gitlink:git[7] suite |
7fc9d69f | 35 |