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

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

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Mar 31, 2011, 12:15 UTC
Message-ID
<AANLkTik3nEE2mtpRVwuQxfoNZd8Ejpgc=T=GS_jEpXsB@mail.gmail.com>
In-Reply-To
<4D9329C5.3060809@elegosoft.com>
On Wed, Mar 30, 2011 at 8:01 PM, Jakob Pfender <jpfender@elegosoft.com> wrote:
Show 7 quoted lines
> 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.
Show 8 quoted lines
>  <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.

-- 
Duy
Previous: Jakob PfenderNext: Jakob Pfender
Message 2 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.