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

[PATCH] Documentation/git-update-index.txt: Remove obsolete note

From
JPJakob Pfender <jpfender@elegosoft.com>
Date
Mar 30, 2011, 13:01 UTC
Message-ID
<4D9329C5.3060809@elegosoft.com>

8dcf39 (Prevent bogus paths from being added to the index) introduced a check for files beginning with '.', preventing path names such as `./file`, `dir/./file` or `dir/../file` from being added. This was reflected in the man page.

d089eba (setup: sanitize absolute and funny paths in get_pathspec()) removed this check without reflecting the change in the man page.

Signed-off-by: Jakob Pfender <jpfender@elegosoft.com>
---
  Documentation/git-update-index.txt |    6 ++----
  1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Documentation/git-update-index.txt 
b/Documentation/git-update-index.txt
index 1ca56c8..f0dcd1f 100644
--- a/Documentation/git-update-index.txt
+++ b/Documentation/git-update-index.txt
@@ -152,10 +152,8 @@ you will need to handle the situation manually.

  <file>::
  	Files to act on.
-	Note that files beginning with '.' are discarded. This includes
-	`./file` and `dir/./file`. If you don't want this, then use
-	cleaner names.
-	The same applies to directories ending '/' and paths with '//'
+	Note that directories ending in '/' and paths with '//' are
+	discarded.

  Using --refresh
  ---------------
-- 
1.7.0.4
Next: Nguyen Thai Ngoc Duy
Message 1 of 5 in “Documentation/git-update-index.txt: Remove obsolete note”
  1. Documentation/git-update-index.txt: Remove obsolete noteJakob Pfender, Mar 30, 2011
  2. Nguyen Thai Ngoc DuyMar 31, 2011
  3. Jakob PfenderMar 31, 2011
  4. Junio C HamanoMar 31, 2011
  5. Nguyen Thai Ngoc DuyApr 2, 2011

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.