summaryrefslogtreecommitdiff
path: root/Documentation/git-rev-parse.txt
diff options
context:
space:
mode:
authorSteven Drake <sdrake@xnet.co.nz>2010-01-12 11:33:48 +1300
committerJunio C Hamano <gitster@pobox.com>2010-01-11 19:47:35 -0800
commit7cceca5cccdcf1f0f9caa80b82d26fcff65e6fdf (patch)
tree0bddf16eecc851a173112942ab89bac75f614310 /Documentation/git-rev-parse.txt
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae (diff)
downloadgit-7cceca5cccdcf1f0f9caa80b82d26fcff65e6fdf.tar.gz
Add 'git rev-parse --show-toplevel' option.
Shows the absolute path of the top-level working directory. Signed-off-by: Steven Drake <sdrake@xnet.co.nz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-rev-parse.txt')
-rw-r--r--Documentation/git-rev-parse.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 82045a2522..dc829b333d 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -112,6 +112,9 @@ OPTIONS
--remotes::
Show tag refs found in `$GIT_DIR/refs/remotes`.
+--show-toplevel::
+ Show the absolute path of the top-level directory.
+
--show-prefix::
When the command is invoked from a subdirectory, show the
path of the current directory relative to the top-level