Skip to content

Commit 8d19426

Browse files
committed
Merge branch 'js/rev-parse-doc-fix'
By Jon Seymour * js/rev-parse-doc-fix: rev-parse doc: --git-dir does not always show a relative path
2 parents 1221941 + d0740ce commit 8d19426

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git-rev-parse.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ shown. If the pattern does not contain a globbing character (`?`,
137137

138138
--git-dir::
139139
Show `$GIT_DIR` if defined. Otherwise show the path to
140-
the .git directory, relative to the current directory.
140+
the .git directory. The path shown, when relative, is
141+
relative to the current working directory.
141142
+
142143
If `$GIT_DIR` is not defined and the current directory
143144
is not detected to lie in a git repository or work tree

0 commit comments

Comments
 (0)