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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17260 invoked from network); 18 Sep 2020 03:12:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Sep 2020 03:12:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1600398748; b=WU1tk7QX7l60eYzJoSmei+zkJBwHRPeNBneOzE8pQwU9wFA5hfH1w39nb+S6fwW0JNuyT4VgUT zP5OW4GuTuDMS6u69GwH9qhU7Mr31NLxYsXViDs0vD4lQob+eSlggx5/rRAoAqXxhNmWR1ewN/ rbLnOxcE1tHquj+DPBMEEQLaFOkWwjJQfqTCImKk9PePtpZO/sq3aekWjSA0HyN+EJG4C6LUWr Q1FHC9XjbCL8Qi70pFNfBgc1ms2GOZp0lR6n0L0sdpk8DvIIATF6P+oznY9ZQfZXOaN20R8Kcb zRbVTO7FW4WMUbvWWqgrzEmRB83Pf25jg7oYWGP2HAHFVQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (gate.utahime.jp) smtp.remote-ip=183.180.29.210; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.a=rsa-sha256; dmarc=none header.from=utahime.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1600398748; bh=PqELqfu8UkIKzSLJpD32hET89aUdlpAbd4D1FBHoDeU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:From:Subject:To:Message-ID:Date:DKIM-Signature: DKIM-Signature; b=Tr9Rm8aItyCjLusPKj1oxDtdjyd6RycRyX+ma4qZVhNDaUAa5xQVLD6vy3q4c7aYOA7W1jqXnI nngvDBjK51mCJY1IPBWHq8IMsvokwFzJ2NkIK126qMja0JVAsTQhZ73Mcz6HF4Kf3cn89aXJwV xNv7hLDXOTmzZzmxEoZBhPi3swKbFfsPOYJL8/cU/BhD5yfz4JFpbfC5s4DAfzI7b647OUjHPt cyte+EDLw3cgfrDRSJ9ZiT5PgI5CLNXuAt/hxbBHnQKleAXxhBDGorzFeqWWL5MZNLv6l0lcbp Pln9p7bRRjGiSNK6blBY5Tsx0worQizxkULXZPbDoXA+CQ==; 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-Transfer-Encoding: Content-Type:Mime-Version:References:In-Reply-To:From:Subject:To:Message-Id: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=YwCr8711l4TuH3TqmnPJL2s4iWy0Ohd/X7Lkx26d7Ho=; b=dgzBBWXNAaoS1w8m5o/lZpthL4 jfwInXN0YPtdw4P8vqwR4802YzmefH1Sj9H7ScvzjVTujv0ssUje9Hty4uDcl9QqVVigmbSNPtm6s E6MqvhZeCJxRF1p/s7stWQJLyXogWc1JgTN09Wr8FHeobgq/EZOB7slRYDW+0OSxNZuyTk/Q0BIdO gnsPUU2lgD1MCbM8e0X4Om62aRA6ZxEvFPbO1PQZldDnVyHAr9F4V2vAeg8XeBH1CqhL8TmcWLPV0 Kpl1ChilmLGFREV17NcbdTa2+cIdPMrdQJNV6ZqbfvJpxR6xvx+l+umNqXk9szak0FE7UkdvWGU11 vYTpQG7Q==; Received: from authenticated user by zero.zsh.org with local id 1kJ6ow-0004BC-LI; Fri, 18 Sep 2020 03:12:22 +0000 Authentication-Results: zsh.org; iprev=pass (gate.utahime.jp) smtp.remote-ip=183.180.29.210; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.a=rsa-sha256; dmarc=none header.from=utahime.org; arc=none Received: from gate.utahime.jp ([183.180.29.210]:17500) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kJ6oV-0003oB-B5; Fri, 18 Sep 2020 03:11:57 +0000 Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 5058E2AF22 for ; Fri, 18 Sep 2020 12:11:37 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1600398697; bh=PqELqfu8UkIKzSLJpD32hET89aUdlpAbd4D1FBHoDeU=; h=Date:To:Subject:From:In-Reply-To:References; b=cFEjJvMK5FjhDRX817e0kNHa+Zbvd56uVYqTzUYdTLlf3EMQ6gOpd8aoVB6WznIbx IMsuhUMB+i7tjD8mRyD9QZwjytZYfcfQtZ6gUP2+2lT9VDX4dNz3dminjlX+YdWq6x pgaw6SYPFLcL2Q4Qww8jimRmUYhJPgoNySsbCpg3tc1s0MPSaMQC4iGTEZVvGeovD2 tbH8j7AV9OSQfsPx2qEDhWRQ+WYwFHI822l65sfeo/FDPKAM/JHrO82pq1cIzEdn+C NGTPPyKBs7M4YQn8JOR0YwNTk4AZuDhWI+aMxfPU3mChyIAXLvYmJx5GB+DBEXeBbz 3aVwxZCNPgCfA== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 448BA2E08F; Fri, 18 Sep 2020 12:11:36 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at eastasia.home.utahime.org Date: Fri, 18 Sep 2020 12:11:04 +0900 (JST) Message-Id: <20200918.121104.642676791521054636.yasu@utahime.org> To: zsh-users@zsh.org Subject: Re: Strange behavior about option completion of `git push` From: Yasuhiro KIMURA In-Reply-To: <94652-1600371379.844993@tOXe.J2fU.pIBE> References: <20200918.022213.2164194227802931452.yasu@utahime.org> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Seq: 26072 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: From: Bart Schaefer Subject: Re: Strange behavior about option completion of `git push` Date: Thu, 17 Sep 2020 11:05:43 -0700 > 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. Oh, I didn't notice it. From: Oliver Kiddle Subject: Re: Strange behavior about option completion of `git push` Date: Thu, 17 Sep 2020 21:36:19 +0200 > This appears to be a bug in the zsh completion internals. The difference > between --f and --r is that for --f, the options are added with more > than one call to compadd because there's a mix of suffix characters > required on those options. > > Any further discussion on this line should probably go to -workers but a > minimal function to reproduce the issue is as follows: > > compadd -M 'r:|.=*' one > compadd -M 'r:|-=*' - --follow-tags --force > compadd -M 'r:|-=*' - --force-with-lease > return 0 > > With _git_push the first of these compadd calls is from _ssh_hosts. The > matching control options are needed. The latter two with - as a pivot > but the first can use any character. The case with --r is equivalent to > combining the latter two compadd calls into a single call. > > Matching control is known to have some gnarly issues. It seems too much for me to handle this issue. So I would like to leave the investigation of it to someone familiar with the internals of zsh completion. --- Yasuhiro KIMURA