From: Nguyen Thai Ngoc Duy Date: Sat, 02 Apr 2011 08:52:07 GMT Subject: Re: [PATCH] Documentation/git-update-index.txt: Remove obsolete note Message-ID: In-Reply-To: <7v7hbfj7d6.fsf@alter.siamese.dyndns.org> On Fri, Apr 1, 2011 at 4:41 AM, Junio C Hamano wrote: > 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? > Yes it's more like that. -- Duy