Staging
v0.8.1
swh:1:snp:c5feb7ee9221a3820c8879e85e8a18470c0b3afa
Raw File
Tip revision: 16cee38ae2bff93a4e4c512550fb4ccac035a3a1 authored by Junio C Hamano on 06 June 2006, 05:36:21 UTC
rev-parse: tighten constness properly.
Tip revision: 16cee38
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