From: Jeff King Subject: [PATCH 0/2] rev-parse and "--" Date: Fri, 6 Dec 2013 16:12:22 -0500 Message-ID: <20131206211222.GB20482@sigill.intra.peff.net> References: <20131205191518.GB19039@sigill.intra.peff.net> <20131205200306.GA13443@sigill.intra.peff.net> <20131205210000.GA19617@sigill.intra.peff.net> <20131205212851.GA21776@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Duy Nguyen , Git Mailing List To: Junio C Hamano X-From: git-owner@vger.kernel.org Fri Dec 06 22:12:31 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vp2hJ-0002xK-LB for gcvg-git-2@plane.gmane.org; Fri, 06 Dec 2013 22:12:30 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756869Ab3LFVMY (ORCPT ); Fri, 6 Dec 2013 16:12:24 -0500 Received: from cloud.peff.net ([50.56.180.127]:51814 "HELO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753652Ab3LFVMY (ORCPT ); Fri, 6 Dec 2013 16:12:24 -0500 Received: (qmail 8243 invoked by uid 102); 6 Dec 2013 21:12:24 -0000 Received: from c-71-63-4-13.hsd1.va.comcast.net (HELO sigill.intra.peff.net) (71.63.4.13) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Fri, 06 Dec 2013 15:12:24 -0600 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Fri, 06 Dec 2013 16:12:22 -0500 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Dec 05, 2013 at 01:44:12PM -0800, Junio C Hamano wrote: > ;-) Good flow of thought. As to your rev-parse change, I don't > immediately think of a hole/flaw offhand; it looked a good > straight-forward change to me. Here it is with tests and a commit message. While writing the tests, I noticed that also do not handle true ambiguity the same (we prefer revs, rather than complaining). That's fixed in the second commit. [1/2]: rev-parse: correctly diagnose revision errors before "--" [2/2]: rev-parse: diagnose ambiguous revision/filename arguments -Peff