]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-sh-setup.txt
[PATCH] Documentation: Update all files to use the new gitlink: macro
[thirdparty/git.git] / Documentation / git-sh-setup.txt
CommitLineData
215a7ad1
JH
1git-sh-setup(1)
2===============
7fc9d69f
JH
3
4NAME
5----
215a7ad1 6git-sh-setup - Common git shell script setup code.
7fc9d69f
JH
7
8SYNOPSIS
9--------
215a7ad1 10'git-sh-setup'
7fc9d69f
JH
11
12DESCRIPTION
13-----------
7fc9d69f 14
52a22d1e
LAS
15Sets 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.
17So use it something like
7fc9d69f 18
215a7ad1 19 . git-sh-setup || die "Not a git archive"
7fc9d69f 20
52a22d1e 21to make the rest of the git scripts more careful and readable.
7fc9d69f
JH
22
23Author
24------
25Written by Linus Torvalds <torvalds@osdl.org>
26
27Documentation
28--------------
29Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
30
31GIT
32---
a7154e91 33Part of the gitlink:git[7] suite
7fc9d69f 34