From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 5/7] ls-files -h: show usage even with corrupt index Date: Fri, 22 Oct 2010 11:30:20 -0700 Message-ID: <7v1v7inkqr.fsf@alter.siamese.dyndns.org> References: <1287544320-8499-1-git-send-email-pclouds@gmail.com> <1287544320-8499-4-git-send-email-pclouds@gmail.com> <20101022063837.GA6081@burratino> <20101022064814.GF6081@burratino> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: =?utf-8?B?Tmd1eeG7hW4gVGjDoWkgTmfhu41j?= Duy , git@vger.kernel.org To: Jonathan Nieder X-From: git-owner@vger.kernel.org Fri Oct 22 20:31:12 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P9MOS-00069W-SG for gcvg-git-2@lo.gmane.org; Fri, 22 Oct 2010 20:31:09 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751772Ab0JVSae (ORCPT ); Fri, 22 Oct 2010 14:30:34 -0400 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:59462 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752194Ab0JVSaa (ORCPT ); Fri, 22 Oct 2010 14:30:30 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id BFABAE11AA; Fri, 22 Oct 2010 14:30:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=to:cc:subject :references:from:date:message-id:mime-version:content-type; s= sasl; bh=lHwsBckuCi4x13+pLDhLfNHUEl8=; b=m2ajJbISyNDE1AkKyHke92V i079Jb//ZtEOXXJPWUw96FynVneQJN7pJTTfVpXJ8cBbGHSiYstaJOxLUyuQ5Prn 5hWEvMxPtIq2GiTBGXaMliCeSEl4hYnx7WVlyQ+nRQv7q4BGPt96VKDqYsnterED xv6kPzRLLLiyO8yHuVSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=to:cc:subject :references:from:date:message-id:mime-version:content-type; q= dns; s=sasl; b=tsW87C9oMovGsegYwH3x2Wabf2AwKOTfxJQI7jSwCOziXFjse hRqvuIVMH+chO/NBiSHtFiyM4KlVdqK55bn4HXGOrybyOYHk43t+xEW0GLh2jIxk DySVNxR8dF11gOfzNUkWZ+ZP3NxOG3fZlhfuGwUDT3WoSYu54fF8wJthEE= Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 7B1BDE11A5; Fri, 22 Oct 2010 14:30:25 -0400 (EDT) Received: from pobox.com (unknown [76.102.252.155]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id BE503E11A3; Fri, 22 Oct 2010 14:30:21 -0400 (EDT) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-Pobox-Relay-ID: 700407D8-DE0A-11DF-8AAD-030CEE7EF46B-77302942!a-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Jonathan Nieder writes: > +test_expect_success 'ls-files with nonexistent path' ' > + git ls-files doesnotexist >actual && > + test_cmp empty actual > +' This technically is not "nonexistent path" but is "a pathspec that matches nothing".