From: Brian Gerst Date: Tue, 10 May 2005 05:17:31 GMT Subject: Re: [PATCH Cogito] cg-init breaks if . contains sub-dir Message-ID: <428043EB.7010004@didntduck.org> In-Reply-To: Matthias Urlichs wrote: > Hi, Brandon Philips wrote: > > >>- find * | xargs cg-add >>+ find * ! -type d | xargs cg-add > > > Actually, (almost) every use of "find | xargs" which is not a subset of > "find -print0 | xargs -0r" is a bug. > > So please don't do that. Special files aren't liked by git either, thus: > > find * -type f -print0 | xargs -0r cg-add > But it can handle symlinks: find * -type f -o -type l -print0 | xargs -0r cg-add -- Brian Gerst