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

[PATCH V3 1/2] doc: command line interface (cli) dot-repository dwimmery

From
Philip Oakley <philipoakley@iee.org>
Date
Sep 21, 2013, 15:11 UTC
Message-ID
<1379776269-4496-2-git-send-email-philipoakley@iee.org>
In-Reply-To
<1379776269-4496-1-git-send-email-philipoakley@iee.org>

The Git cli will accept dot '.' (period) as the relative path, and thus the current repository. Explain this action.

Signed-off-by: Philip Oakley <philipoakley@iee.org>
---
This updates 431260cc8dd
 Documentation/gitcli.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/gitcli.txt b/Documentation/gitcli.txt
index b065c0e..50e4ce0 100644
--- a/Documentation/gitcli.txt
+++ b/Documentation/gitcli.txt
@@ -58,10 +58,10 @@ the paths in the index that match the pattern to be checked out to your
 working tree.  After running `git add hello.c; rm hello.c`, you will _not_
 see `hello.c` in your working tree with the former, but with the latter
 you will.
-+
-Just as the filesystem '.' (period) refers to the current directory,
-using a '.' as a repository name in Git (a dot-repository) is a relative
-path for your current repository.
+
+ * Just as the filesystem '.' (period) refers to the current directory,
+   using a '.' as a repository name in Git (a dot-repository) is a relative
+   path and hence will be your current repository.
 
 Here are the rules regarding the "flags" that you should follow when you are
 scripting Git:
-- 
1.8.1.msysgit.1
Previous: Philip OakleyNext: Junio C Hamano
Message 2 of 5 in “Extend dot repository documentation”
  1. 0/2 Extend dot repository documentationPhilip Oakley, Sep 21, 2013
  2. 1/2 doc: command line interface (cli) dot-repository dwimmeryPhilip Oakley, Sep 21, 2013
  3. Junio C HamanoOct 15, 2013
  4. Philip OakleyOct 16, 2013
  5. 2/2 Doc URLs: relative paths imply the dot-respositoryPhilip Oakley, Sep 21, 2013

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.