rev-parse: document --is-inside-git-dir
authorMatthias Lederhofer <matled@gmx.net>
Sun, 3 Jun 2007 14:46:04 +0000 (16:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2007 23:07:53 +0000 (16:07 -0700)
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt

index 7757abe62190a066b6ad8b57214b70ff3fa0f12a..5fcec19a5616527228e3a7bd45a8d0b6fdb0b86c 100644 (file)
@@ -89,6 +89,10 @@ OPTIONS
 --git-dir::
        Show `$GIT_DIR` if defined else show the path to the .git directory.
 
+--is-inside-git-dir::
+       When the current working directory is below the repository
+       directory print "true", otherwise "false".
+
 --short, --short=number::
        Instead of outputting the full SHA1 values of object names try to
        abbreviate them to a shorter unique name. When no length is specified