diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-07-25 20:24:22 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-25 14:15:47 -0700 |
commit | 6acbcb927f8e34857fa8f68fcb4f9076941b24ff (patch) | |
tree | 9d759080902551409b91cd9b0211d7984828d46f /Documentation/git.txt | |
parent | 4ab243a944a6013d9e862adadd6fe6152c842401 (diff) | |
download | git-6acbcb927f8e34857fa8f68fcb4f9076941b24ff.tar.gz git-6acbcb927f8e34857fa8f68fcb4f9076941b24ff.tar.xz |
git wrapper: add --git-dir=<path> and --bare options
With this, you can say
git --bare repack -a -d
inside a bare repository, and it will actually work. While at it,
also move the --version, --help and --exec-path options to the
handle_options() function.
While at documenting the new options, also document the --paginate
option.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r-- | Documentation/git.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt index ce3058182..7310a2b8b 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -8,7 +8,8 @@ git - the stupid content tracker SYNOPSIS -------- -'git' [--version] [--exec-path[=GIT_EXEC_PATH]] [--help] COMMAND [ARGS] +'git' [--version] [--exec-path[=GIT_EXEC_PATH]] [-p|--paginate] + [--bare] [--git-dir=GIT_DIR] [--help] COMMAND [ARGS] DESCRIPTION ----------- @@ -41,6 +42,15 @@ OPTIONS environment variable. If no path is given 'git' will print the current setting and then exit. +-p|--paginate:: + Pipe all output into 'less' (or if set, $PAGER). + +--git-dir=<path>:: + Set the path to the repository. This can also be controlled by + setting the GIT_DIR environment variable. + +--bare:: + Same as --git-dir=`pwd`. FURTHER DOCUMENTATION --------------------- |