Re: [PATCH Cogito] cg-init breaks if . contains sub-dir
Show 14 quoted lines
> 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