From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28616 invoked from network); 17 Sep 2020 18:06:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Sep 2020 18:06:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1600365988; b=FC7ZZ7birhcVSexjvQvX/G4O2FvHAyKulMGfT/UimsgRKG6/P30q0tZuYkOHS1JFT8oGXc6Lo1 XVmrX2VzTT9LFRXHQ7m33dBrJJOahC2eHVA4i9cWkKSdpUMW30v8Tl1sjqmyiKqLdLwnZN4hYX gA8StVGANiAN/yu1OyDer/va2a2eQPIKtYic+WEtiCyyrWzfyuh5YEa2NqH2+c300+whU83rbz 9ScVtrT/Sju0+oPZdhNF4QVgns0OMQ4S2DG/q2Qp/0VHZK6wD3EVZLi/MIpBgQVYUchKCEoPCY QtJj0Rirqy5HHSA20ef0HF1zMLvW924odXWJr/pcwmu2dQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1600365988; bh=CWp/rOJTZ6zibO9Jx7Ys9j2rwBm6eNiwMSloVP/LdHg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=avrQsUhbq1fAJ9gsCKt+xLiJ4+rNpS9pmGy4U5PlyuwaGPLhcSk72vO1Jm4mbvTB3Q1p3eQEVs 2DyfduC+LMXDzJPt9YhFrfk/mUAh26ziD7JuiMwd9xgNzZjB6AB7PdxbguLjiu1UGymIk2Vgub VP9r4Ewu7o/R9sSVEMD1fox3pXTfTo/qHUIhKksOrNup5Gficq0oVS1dVUIF4JDW4P8O+MB6SO HI3+ux2g/3Vq+sn5c0cSAVP13qGZ6ok1XN7uA/W6ysBzaFUcxqXvCYE5HzBgYBEMxYJqjg16Qf rNopcFOP66sx0jMHLDQUI230RNW/g+Sndy+412bwfeXj1A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=CWp/rOJTZ6zibO9Jx7Ys9j2rwBm6eNiwMSloVP/LdHg=; b=b8mwVzahSPltZeH+7XJWLkydZR ju8rFoEFui5qxZbURL3lPMsx7F82WsaI+VHbFq2TXXM0AKsjRFqNiPIBEB+f7D3EK/imeswv22Dpz TArXij7hVTktyjiPoQfPkL4G504elCEhYdK4SZ0Uv9G2sxBqr1+qUvR+8W59L/O5xJNClN4N/tMh7 CjBuHItbA0dfbFxBUnZMWmvFfryt1iEXRZZnORaOVrNQvLvIne5x0QXixZ1uV/vyq2pGSBz0gWVjI jp0ChHgWK0+3BreqxM4OVMQEJQdhUukSNplfrNSEXOqIE1AtrNzJ1NBx19YZY5iO34g71AwKMgs5i kcg3MPCQ==; Received: from authenticated user by zero.zsh.org with local id 1kIyIb-000FlO-Jg; Thu, 17 Sep 2020 18:06:25 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f178.google.com ([209.85.167.178]:44349) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kIyI8-000FNo-6E; Thu, 17 Sep 2020 18:05:57 +0000 Received: by mail-oi1-f178.google.com with SMTP id 185so3480900oie.11 for ; Thu, 17 Sep 2020 11:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CWp/rOJTZ6zibO9Jx7Ys9j2rwBm6eNiwMSloVP/LdHg=; b=tQy7cWj3ujollciUXiVTJ0v2dZ+e4idltsUH22VQRxZWPnajzbac/6hPRcTPQCgJE7 1OYsXkhZwZLdj5CwpaGEjGfKOmvAd2KXM9DNwR+Mx4rqDvEBWGsb+J2M5xrgFRHQNbeZ XeuLnncYweGW5JNB/LmhNoKIO1zp/6Q6zk7MmvpfRPPFLwivyFH3gAAFCvBLf90XbTBy zMM1EIC/ZcAN+rqLYw1yMhojgXCLYVbQRG3/x9SbUjy0rK8MUuWwsFLt9bfB4UedHleJ 2qd2ccI7x1hGtrrapCcoyGEpVlnnB71ynmO+6KM3mGPuN/obEIiBV7hBwgC4QxN+3Bsr Xo1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CWp/rOJTZ6zibO9Jx7Ys9j2rwBm6eNiwMSloVP/LdHg=; b=cmUQCpF9A9vZKd6Tp2E04B5zVDPWXoesGEMgNsWI97dmeaXgopxMnxWcMHa7xWuOce Z2v3pb4SGWg/7oejoh1CDe6bHY1hYUJzLdSxAjVg4976C6B9A9j36u6XePz8WYr33ljS h1EePpKvUPTXWgxBtfxssznJBrlIRZ60pG7iQsPyNkylk3NgKEpVmkmysb4gxYXG66Lg SD9CUtODC6fp8nP9OgJPUNWfvLxS5KymDJ78+eaCLnbSP7qEtJWbk2PaSoRMu6mucRb4 0nq3WDQes3p48jPwAVGsvGgep3TRQrcNMueR8qeOcMdmvzdUOi/E75QdfPtJxENq+jvk bDnQ== X-Gm-Message-State: AOAM531dAbjVkPvwF7Jo2d8kDl678p74PalwC6Zsmon7plI0LVbYlMXP usOtlgiY1KRyxnUU6qlP/vc4eWA7Xt1/4ur8gBmhRVbhpTGeJm6e X-Google-Smtp-Source: ABdhPJzL/ZwSkR7kCWpBjSbi9j0AsL0G6YfqhgMtL46FI1FXuwvo4byMLmGp1PqadgsGU4CJbiRrgnEo1KfSGpbzmSE= X-Received: by 2002:aca:3ac6:: with SMTP id h189mr7319232oia.132.1600365954341; Thu, 17 Sep 2020 11:05:54 -0700 (PDT) MIME-Version: 1.0 References: <20200918.022213.2164194227802931452.yasu@utahime.org> In-Reply-To: <20200918.022213.2164194227802931452.yasu@utahime.org> From: Bart Schaefer Date: Thu, 17 Sep 2020 11:05:43 -0700 Message-ID: Subject: Re: Strange behavior about option completion of `git push` To: Yasuhiro KIMURA Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26070 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On Thu, Sep 17, 2020 at 10:24 AM Yasuhiro KIMURA wrote: > > At first let's type `git push --r` and hit TAB. Then it is completed > as `git push --re`. > > Next let's type `git push --f' and hit TAB. In this case ... expected > behavior is that it will be completed as `git push --fo`. But what > really happens is that there is no change after TAB is hit. > > Would someone please explain why such differnce happens? I think the difference is that --force-with-lease has a required argument, which differs from the other two --f options, whereas none of the --r completions has an argument. However, without a lot of digging, I don't know why that affects the position of the first perceived ambiguity.