summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-07-25 18:24:22 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-25 21:15:47 (GMT)
commit6acbcb927f8e34857fa8f68fcb4f9076941b24ff (patch)
tree9d759080902551409b91cd9b0211d7984828d46f /Documentation
parent4ab243a944a6013d9e862adadd6fe6152c842401 (diff)
downloadgit-6acbcb927f8e34857fa8f68fcb4f9076941b24ff.zip
git-6acbcb927f8e34857fa8f68fcb4f9076941b24ff.tar.gz
git-6acbcb927f8e34857fa8f68fcb4f9076941b24ff.tar.bz2
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')
-rw-r--r--Documentation/git.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index ce30581..7310a2b 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
---------------------