From: Junio C Hamano Date: Thu, 31 Mar 2011 21:41:09 GMT Subject: Re: [PATCH] Documentation/git-update-index.txt: Remove obsolete note Message-ID: <7v7hbfj7d6.fsf@alter.siamese.dyndns.org> In-Reply-To: Nguyen Thai Ngoc Duy writes: > On Wed, Mar 30, 2011 at 8:01 PM, Jakob Pfender 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. When I first read it, however, I thought that the "removal" meant that the rewrite made the code riskier by accepting nonsense, which turns out not to be what the author meant. It was more like "instead of rejecting, accept these paths after normalizing", no?