Skip to content

Commit c9bf7be

Browse files
jnarebgitster
authored andcommitted
Document git rev-parse --is-inside-git-dir
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6da0878 commit c9bf7be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/git-rev-parse.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ OPTIONS
8989
--git-dir::
9090
Show `$GIT_DIR` if defined else show the path to the .git directory.
9191

92+
--is-inside-git-dir::
93+
Return "true" if we are in the git directory, otherwise "false".
94+
Some commands require to be run in a working directory.
95+
9296
--short, --short=number::
9397
Instead of outputting the full SHA1 values of object names try to
9498
abbreviate them to a shorter unique name. When no length is specified

0 commit comments

Comments
 (0)