From: Jakob Pfender <jpfender@elegosoft•com>
To: git@vger•kernel.org
Cc: Junio C Hamano <gitster@pobox•com>,
torvalds@osdl•org, spearce@spearce•org,
johannes.schindelin@gmx•de, peff@peff•net, nico@fluxnic•net,
barkalow@iabervon•org, chriscool@tuxfamily•org,
jrnieder@gmail•com, raa.lkml@gmail•com,
Matthieu.Moy@grenoble-inp•fr,
Johannes Sixt <j.sixt@viscovery•net>
Subject: Re: [PATCH] Documentation/git-update-index.txt: Remove obsolete note
Date: Thu, 31 Mar 2011 17:18:43 +0200 [thread overview]
Message-ID: <4D949B53.80801@elegosoft.com> (raw)
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.
next prev parent reply other threads:[~2011-03-31 15:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-30 13:01 [PATCH] Documentation/git-update-index.txt: Remove obsolete note Jakob Pfender
2011-03-31 12:15 ` Nguyen Thai Ngoc Duy
2011-03-31 15:18 ` Jakob Pfender [this message]
2011-03-31 21:41 ` Junio C Hamano
2011-04-02 8:52 ` Nguyen Thai Ngoc Duy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D949B53.80801@elegosoft.com \
--to=jpfender@elegosoft$(echo .)com \
--cc=Matthieu.Moy@grenoble-inp$(echo .)fr \
--cc=barkalow@iabervon$(echo .)org \
--cc=chriscool@tuxfamily$(echo .)org \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=j.sixt@viscovery$(echo .)net \
--cc=johannes.schindelin@gmx$(echo .)de \
--cc=jrnieder@gmail$(echo .)com \
--cc=nico@fluxnic$(echo .)net \
--cc=peff@peff$(echo .)net \
--cc=raa.lkml@gmail$(echo .)com \
--cc=spearce@spearce$(echo .)org \
--cc=torvalds@osdl$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox