summaryrefslogtreecommitdiffstats
path: root/git-rev-parse.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-12-29 01:34:52 +0000
committerJunio C Hamano <junio@kernel.org>2010-12-29 01:34:52 +0000
commit3609b339c5cf80a09d3c619ae11c8263463f361c (patch)
tree4794a57fb054f8f25f8514e5ce22d58506516596 /git-rev-parse.txt
parent5fa6d1a8c4dbc4a83996de323b5e4751819bfef6 (diff)
downloadgit-htmldocs-3609b339c5cf80a09d3c619ae11c8263463f361c.tar.gz
Autogenerated HTML docs for v1.7.4-rc0
Diffstat (limited to 'git-rev-parse.txt')
-rw-r--r--git-rev-parse.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-rev-parse.txt b/git-rev-parse.txt
index 4a27643c1..ff23cb021 100644
--- a/git-rev-parse.txt
+++ b/git-rev-parse.txt
@@ -136,7 +136,12 @@ appending `/{asterisk}`.
directory (typically a sequence of "../", or an empty string).
--git-dir::
- Show `$GIT_DIR` if defined else show the path to the .git directory.
+ Show `$GIT_DIR` if defined. Otherwise show the path to
+ the .git directory, relative to the current directory.
++
+If `$GIT_DIR` is not defined and the current directory
+is not detected to lie in a git repository or work tree
+print a message to stderr and exit with nonzero status.
--is-inside-git-dir::
When the current working directory is below the repository