From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 5/9] update-index: add --checkout/--no-checkout to update CE_NO_CHECKOUT bit Date: Tue, 18 Nov 2008 10:59:14 -0800 Message-ID: <7vk5b0vp19.fsf@gitster.siamese.dyndns.org> References: <1222833849-22129-1-git-send-email-pclouds@gmail.com> <1222833849-22129-2-git-send-email-pclouds@gmail.com> <1222833849-22129-3-git-send-email-pclouds@gmail.com> <1222833849-22129-4-git-send-email-pclouds@gmail.com> <1222833849-22129-5-git-send-email-pclouds@gmail.com> <1222833849-22129-6-git-send-email-pclouds@gmail.com> <20081118113316.GA18610@segfault.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: =?utf-8?B?Tmd1eeG7hW4gVGjDoWkgTmfhu41j?= Duy , git@vger.kernel.org, "Shawn O. Pearce" To: Jeff King X-From: git-owner@vger.kernel.org Tue Nov 18 20:01:37 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2VpQ-000130-IY for gcvg-git-2@gmane.org; Tue, 18 Nov 2008 20:01:37 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750990AbYKRTAL convert rfc822-to-quoted-printable (ORCPT ); Tue, 18 Nov 2008 14:00:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751745AbYKRTAL (ORCPT ); Tue, 18 Nov 2008 14:00:11 -0500 Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:55792 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbYKRTAK convert rfc822-to-8bit (ORCPT ); Tue, 18 Nov 2008 14:00:10 -0500 Received: from localhost.localdomain (unknown [127.0.0.1]) by b-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id B00AD16F81; Tue, 18 Nov 2008 14:00:07 -0500 (EST) Received: from pobox.com (unknown [68.225.240.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by b-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id AB1C516C33; Tue, 18 Nov 2008 13:59:16 -0500 (EST) In-Reply-To: <20081118113316.GA18610@segfault.peff.net> (Jeff King's message of "Tue, 18 Nov 2008 06:33:16 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: 1DE8FB34-B5A3-11DD-9C19-C128113D384A-77302942!a-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Jeff King writes: > On Wed, Oct 01, 2008 at 11:04:05AM +0700, Nguy=E1=BB=85n Th=C3=A1i Ng= =E1=BB=8Dc Duy wrote: > >> +test_expect_success 'setup' ' >> + mkdir sub && >> + touch 1 2 sub/1 sub/2 && >> + git add 1 2 sub/1 sub/2 > > Mind-boggling, but this manages to break on Solaris. Fix is > below. I tend to avoid "touch", not specifically for this reason, but surely t= his is another reason why ">sub/1" is much better way to create a throw-awa= y file ;-) > Note that this has implications for 'touch "$FOO" "$BAR"' > used in scripts if FOO might be entirely numeric. However, a > quick grep shows we usually touch one file at a time. You can always do: : >>"$FOO"