Code

rev-parse: introduce --is-bare-repository
[git.git] / Documentation / git-rev-parse.txt
index 7757abe62190a066b6ad8b57214b70ff3fa0f12a..c817d1614af01a11d60e50ab73f41ed2575f3d4a 100644 (file)
@@ -89,6 +89,13 @@ 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".
+
+--is-bare-repository::
+       When the repository is bare 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