From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id D8B1C1FE90 for ; Wed, 19 Apr 2017 21:24:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969688AbdDSVY2 (ORCPT ); Wed, 19 Apr 2017 17:24:28 -0400 Received: from cloud.peff.net ([104.130.231.41]:36339 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969687AbdDSVY1 (ORCPT ); Wed, 19 Apr 2017 17:24:27 -0400 Received: (qmail 24779 invoked by uid 109); 19 Apr 2017 21:24:26 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.84) with SMTP; Wed, 19 Apr 2017 21:24:26 +0000 Received: (qmail 27313 invoked by uid 111); 19 Apr 2017 21:24:49 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.84) with SMTP; Wed, 19 Apr 2017 17:24:49 -0400 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Wed, 19 Apr 2017 17:24:23 -0400 Date: Wed, 19 Apr 2017 17:24:23 -0400 From: Jeff King To: Jacob Keller Cc: Jacob Keller , Git mailing list , Junio C Hamano , =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , =?utf-8?B?UmVuw6k=?= Scharfe Subject: Re: [RFC PATCH] parse-options: disallow double-negations of options starting with no- Message-ID: <20170419212423.i6jnu3q2npnbq2gz@sigill.intra.peff.net> References: <20170419090820.20279-1-jacob.e.keller@intel.com> <20170419151005.wolvxiacjqxoqrq3@sigill.intra.peff.net> <20170419210028.sky24qda7kp4pl5y@sigill.intra.peff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Apr 19, 2017 at 02:22:47PM -0700, Jacob Keller wrote: > > I think the breakage in that case would be caused by "--no-stage" taking > > over "--stage" as well. And your patch doesn't change that; it happened > > already in 2012. > > > > Your patch only affects the --no-no- form, which I think we would never > > want. I don't think it needs callers to trigger it explicitly. > > Right, I was just thinking in the weird cause were we *do* have a > "no-option" that does want the "no-no-option" to negate it. Maybe this > isn't ever a thing and we don't need to worry at all..? Yeah, my assumption is that we don't need to worry about that case. -Peff