$GIT_COMMON_DIR: a new environment variable
[gitweb.git] / Documentation / git-rev-parse.txt
index d6de42f74efeedda228a97746c123de6e3e1f0ab..2103bbf48a38f7f27d57258677804d2823ebfb7a 100644 (file)
@@ -233,6 +233,13 @@ print a message to stderr and exit with nonzero status.
        repository.  If <path> is a gitfile then the resolved path
        to the real repository is printed.
 
+--git-path <path>::
+       Resolve "$GIT_DIR/<path>" and takes other path relocation
+       variables such as $GIT_OBJECT_DIRECTORY,
+       $GIT_INDEX_FILE... into account. For example, if
+       $GIT_OBJECT_DIRECTORY is set to /foo/bar then "git rev-parse
+       --git-path objects/abc" returns /foo/bar/abc.
+
 --show-cdup::
        When the command is invoked from a subdirectory, show the
        path of the top-level directory relative to the current