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

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

From
JPJakob Pfender <jpfender@elegosoft.com>
Date
Mar 31, 2011, 15:18 UTC
Message-ID
<4D949B53.80801@elegosoft.com>
In-Reply-To
<AANLkTik3nEE2mtpRVwuQxfoNZd8Ejpgc=T=GS_jEpXsB@mail.gmail.com>
On 03/31/2011 02:15 PM, Nguyen Thai Ngoc Duy wrote:
 > On Wed, Mar 30, 2011 at 8:01 PM, Jakob 
Pfender<jpfender@elegosoft.com>  wrote:
 >> 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.
 >
 > Sounds good.
 >
 >>   <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.
 >
 > Do you mean the slashes or the directories are discarded? Directories
 > are not, I believe.

Since we're talking about update-index, yes, directories are actually discarded, as update-index only accepts files. Directories can be added via git-add as git-add just passes the single files in the directory to update-index.

Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 3 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.