swh:1:snp:47f1e8bb459169b0feb652a9c3d9cbabd8526d4a
Raw File
Tip revision: 8a263aeb4f913e04e18248eb4d370157f1d253e6 authored by Junio C Hamano on 16 January 2006, 06:22:23 UTC
GIT 1.1.3
Tip revision: 8a263ae
git-sh-setup.txt
git-sh-setup(1)
===============

NAME
----
git-sh-setup - Common git shell script setup code.

SYNOPSIS
--------
'git-sh-setup'

DESCRIPTION
-----------

Sets up the normal git environment variables and a few helper functions
(currently just "die()"), and returns ok if it all looks like a git archive.
So, to make the rest of the git scripts more careful and readable,
use it as follows:

-------------------------------------------------
. git-sh-setup || die "Not a git archive"
-------------------------------------------------

Author
------
Written by Linus Torvalds <torvalds@osdl.org>

Documentation
--------------
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.

GIT
---
Part of the gitlink:git[7] suite

back to top