git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 08/11] Document git rev-parse --is-inside-git-dir

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 16, 2007, 19:03 UTC
Message-ID
<11820206351723-git-send-email-jnareb@gmail.com>
In-Reply-To
<11820206272990-git-send-email-jnareb@gmail.com>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 Documentation/git-rev-parse.txt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index e1cb4ef..87771b8 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -89,6 +89,10 @@ OPTIONS
 --git-dir::
 	Show `$GIT_DIR` if defined else show the path to the .git directory.
 
+--is-inside-git-dir::
+	Return "true" if we are in the git directory, otherwise "false".
+	Some commands require to be run in a working directory.
+
 --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
-- 
1.5.2
Previous: Jakub NarebskiNext: Jakub Narebski
Message 9 of 14 in “Document missing options”
  1. 00/11 Document missing optionsJakub Narebski, Jun 16, 2007
  2. 01/11 Use tabs for indenting definition list for options in git-log.txtJakub Narebski, Jun 16, 2007
  3. 02/11 Document git log --full-diffJakub Narebski, Jun 16, 2007
  4. 03/11 Document git log --abbrev-commit, as a kind of pretty optionJakub Narebski, Jun 16, 2007
  5. 04/11 Document that '--message=<msg>' is long version of '-m <msg>'Jakub Narebski, Jun 16, 2007
  6. 05/11 Document that '--no-checkout' is long version of '-n' option of git-cloneJakub Narebski, Jun 16, 2007
  7. 06/11 Document git rev-list --timestampJakub Narebski, Jun 16, 2007
  8. 07/11 Document git rev-list --full-historyJakub Narebski, Jun 16, 2007
  9. 08/11 Document git rev-parse --is-inside-git-dirJakub Narebski, Jun 16, 2007
  10. 09/11 Document git read-tree --trivialJakub Narebski, Jun 16, 2007
  11. 10/11 Document git reflog --stale-fixJakub Narebski, Jun 16, 2007
  12. 11/11 Document git commit --untracked-files and --verboseJakub Narebski, Jun 16, 2007
  13. Junio C HamanoJun 16, 2007
  14. Jakub NarebskiJun 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.