🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1150

Re: [PATCH 5/5] completion: drop "stash save" completion altogether

#1150
From: "D. Ben Knoble"
Date: Thu, 22 Oct 2026 13:14
59 lines
14000 bytes
On Tue, Oct 20, 2026 at 2:05 AM Patrick Steinhardt <ps@pks.im> wrote:
>
> On Mon, Oct 19, 2026 at 04:01:15PM -0400, Ben Knoble wrote:
> >
> > > Le 16 oct. 2026 à 04:01, Patrick Steinhardt <ps@pks.im> a écrit :
> > >
> > > On Mon, Oct 12, 2026 at 01:48:31PM -0400, D. Ben Knoble wrote:
> > >> It's been deprecated since fd2ebf14db (stash: mark "git stash save"
> > >> deprecated in the man page, 2017-10-22) and the previous commit removed
> > >> further documentation suggesting to use it.
> > >>
> > >> Since we recommend push instead, stop completing for "save" and remove a
> > >> special case in completion code.
> > >
> > > This is the only part I'm a bit torn on. I think it's reasonable to not
> > > autocomplete the "save" command, but if the user manually types it,
> > > should we really stop autocompleting its options altogether?
> > >
> > > Maybe the answer is "yes". After all, as you mentioned in the preceding
> > > commit, the command is deprecated since 2017 already! And after almost
> > > 10 years I think it's fair to start giving users more nudges into the
> > > direction of using "push" instead.
> > >
> > > One note though: the command _will_ be completed in the case where you
> > > have GIT_COMPLETION_SHOW_ALL set
> >
> > I should definitely mention SHOW_ALL; I’m not actually sure
> > what happens for « git stash save --<TAB> » with this patch,
> > so I’ll double-check. I actually wonder if it will complete options.
> >
> > Would that satisfy you if so ?
>
> Probably depends on the outcome of your tests, but ultimately I think
> I'd be fine with either of the options. But if we stop autocompleting we
> should definitely mention SHOW_ALL.

Here's what my testing showed (all Zsh):

- with SHOW_ALL, "git stash <tab>" lists "save" as an option; "git
stash save --<tab>" completes options
- without SHOW_ALL, "git stash <tab>" does not list "save"; "git stash
sa<tab>" does not complete "save"; "git stash save --<tab>" completes
options

I'll update the commit locally to reflect this. Thoughts?

-- 
D. Ben Knoble
Technical Details
Message-ID: <CALnO6CCUfja_AxYjbz9xpZgoibbdvy6C4utDDQk9ONhjiOYYzg@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72853-linux-kernel-git=dewy.ru
References: <atHZ0gV5Pz80l3ho@pks.im> <35E6B235-6370-4F94-A0B1-4B6A941D8C47@gmail.com> <atcEqHErXaGiMu4J@pks.im>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72853-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com ("D. Ben Knoble")
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 5/5] completion: drop "stash save" completion altogether
Date: Thu, 22 Oct 2026 09:14:52 -0400
Organization: Usenet Network
Message-ID: <CALnO6CCUfja_AxYjbz9xpZgoibbdvy6C4utDDQk9ONhjiOYYzg@mail.gmail.com>
References: <atHZ0gV5Pz80l3ho@pks.im> <35E6B235-6370-4F94-A0B1-4B6A941D8C47@gmail.com>
 <atcEqHErXaGiMu4J@pks.im>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="216330"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SScr5fDX4b8hkKWckpJDzepjZ7Q= sha256:2Bv9lDlTVPvL5REWdCKpHWmWAR9vsQHUd5TGXROvnU0=
	sha1:qwu0X+PdW7ECSy6O591lZ04kGeQ= sha256:fRAgF/EEfS27Y74rv+w5QN2sSHw3jNiCf69A0ihvNhc=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 41276111292; Thu, 22 Oct 2026 16:18:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id DJPy9gtLV7vZ;
	Thu, 22 Oct 2026 16:18:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-72853-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 1D26F11128D; Thu, 22 Oct 2026 16:18:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 033B42A695; Thu, 22 Oct 2026 13:15:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792674905;
	b=c3YwFp97LLMqn77tRW0/kBKdmQ0IQk+g3F0cR2OkcZuaRoLB3hoK6TSRXCfpPRHe/jNw
	 eEvu05GtDQ5U7fvCIk8HOliVdkafWxkYGuqtFHlGkQvuFuk+fnbt5p02EZR5LlM30NQsR
	 /RVLz0g26yc6v1PXCwWtltJ0RncEMtqMQlBokM2eEzEMJXSvZ3WHkL9DMrhNmYrUf6DL2
	 psltPIwqGLJ/MwEGCQChFcgu/p1+aka5ND6c2GysMGxlq6jveqPUd0UgZBSaK6bmUDxw0
	 dsC3DG13hAYywUNvY1siHbC9QF1ZbYJP4dJGHji9HsGmSyklwOkgfmG7ZD8vgeu+c0g==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792674905;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=cjUsqgZZth1eqxAlntKd6CdIpuBHJp2+yqm8vzlTK2U=;
	b=rEK5PNfZFhWvjNl5F1i4xNEcjZuqxrhF1HwbQAPuGvfKdXk2a1IWNsmeWoHxLODulOTT
	 Q0fdw4Tvq+o1TwE0vr94mZk4jUFgmv6efkVmEvt8fkdvdgYzlBGKnExecdy6lIz0LskEP
	 XlIHJityyyD3E+v5YFL02fuCB0ezR4l2Umwk66JD2B66O4Vc7FWuUEZOsho7ejVI2zT3K
	 KYHR0F0edWNUNvsNtMv0i3t6Qy+d5OZrdQ0U5Vcoh2Pv9QGR7jz+9eoeund7+omUKutIz
	 N3VrudRCeXE82ucb7wW1SLXZhuDP8JVJxwg+zmnkXxp6MYbsU0Vzrij2baBHLofsPaQ==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=ltjRArp4;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FB5E606A319;
	Thu, 22 Oct 2026 13:15:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=ltjRArp4
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.214.178
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792674904;
	b=ae18hFlcLyEcEDs/ZbMzRFOp1k0U1uXCOKqwhPCKGHEK8DQDEC13SzRErLMXL43nLZo5
	 dTMIlWGZ8vxUqukERq4g55m5/37xM9RQl8Cf+PSxnR8PsH2qE7ahjPWxXyOmvEihfxsyg
	 wjUYnfYIkiC+qA2+bRJZTOjiRnjgfkSiFp6Y66p8hot3AMcDmBHUv0wxVCiKBaiwMxzaj
	 9k6BTvAyToad9fjvsb0N4LB23AFB+wdJi+BCtEZtFg72P+vhfEveohve72CuFogR/YJQ1
	 qRJ8obuCOQHqzqEKoF4jEqIaOM7uu0BAbNghxJt6HyCvfzpLjE8bRPunbVWtakSMDlQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792674904;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=cjUsqgZZth1eqxAlntKd6CdIpuBHJp2+yqm8vzlTK2U=;
	b=Uw4L+//kfLLCtRhKHdmgMAvOT/jsQnON+C5pnsXvaidHVfMf9Pid9jWPKmkb0xxF/byc
	 yIu9EC8AF7SvJX+xTphqwx9X5VLNTFGb1kGyh5Uxpwt0rE4HQkqUwotKF/DTh6DBveniC
	 qJGJLzLXCYOdQKJb1iSBAw91GahJ0fbxZb9PWDJBaDvN4g+7EraCKtAnPnIH1CY8cEYX4
	 Jpp5Gvcm4/beDTv2SdGLP8mWab65sF8+zRLf+yJyI7TR5nNVQjVLLsXSFtFx7GlrorEkE
	 1207VsXrrzhUrqSG8xqkj3+JY/8dpr7pUXaAKzwIxxXRKn5f3w1F89cDnGEDi5wlf2A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=ltjRArp4;
	arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.214.178
X-Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51FFE606A31E
	for <git@vger.kernel.org>; Thu, 22 Oct 2026 13:15:04 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 51FFE606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2e940d5d2beso7296445ad.0
        for <git@vger.kernel.org>; Thu, 22 Oct 2026 06:15:04 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1792674904; cv=none;
        d=google.com; s=arc-20260327;
        b=Pxi9pKDESo16gIHtWLU5nOU9ucXNFcFwZYehmmbs1BnYPprROACsQV6eYaedaDDNMU
         HHYDzqlJXITBfENr+JItPYbg++bt9Iyy4ZhE2VXkoZHyHj2eCmg/4ir4YCUIGojE9bdy
         LSddLrE7TkMKo8MuCOAo4Ukt/cPNG5Foxpmw/HBNKfl0tOKSMgjSVZw0gwX2Qgals68F
         4m+2tMNDduXyC5B8L2zHCE4KRCZ8bEGNp8wAfqQrOp26bPD4lmO48h3hmJoJFn/ep6a/
         cdjY3nRF7ObygKwRUUzqN22y9ZmF/sfPw9PtsmlHwRHZO708PwacskRHWUQ4RVrWMU1r
         ZXFw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:dkim-signature;
        bh=cjUsqgZZth1eqxAlntKd6CdIpuBHJp2+yqm8vzlTK2U=;
        fh=XFzWQYBXScgxool/pwAxjUJoclOVldXyKbEJT+x+pf4=;
        b=c5yjgkU8S7BFRoUUjut5hiApeZ2JwijJP6qq7tmAtcSRBGJzvZns8PJpxIOOhnGDSa
         0uHqYmbFx6O84E7n2yuxYOeM5AaOV5+Dr40riT6avl2nSC52/YixZ75accmsQIvfZWMm
         +i0ocqhD6YL2BW/a2GP2SDrBzt1UPllLfWoGv105tM3DFL6yRbriTitePoQWppK3uwCa
         joC+9etUe1q6JnVeFYl/0IKkojrIaEdfQ3CBjoBSgFfjPUlCeijk3WqalcQ3Q4zCRA96
         VRxRpTxYmH++IW/MIFhguTBY8ngCrVRDvS05ML84joi4z8wrSF+xOyMJ7TvG+rhJs9W4
         iyYg==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1792674904; x=1793279704; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=cjUsqgZZth1eqxAlntKd6CdIpuBHJp2+yqm8vzlTK2U=;
        b=ltjRArp4BbfkAfM1VhEGfIpAHoskyxl1CLg2RDh/FrhdimYHtiEVjEebnzqdwdnfEl
         tDAXTay0yPMBHWVhgIQTtz+5EKsbfi84X6llM9rp+mIPolG8MA3E+ENGa83C+2rIa88n
         eGR+7V/fAOEFYpj25y0/AftAkeedX8VpuAXc0GFpbxnxtwiIkk0qxC8aUgtixwSGiYex
         iFoJOVGkma0BF9ioleTRe0W2h2ut7j4IvxDITeSib/rP0Z77vZx8kOLxGy6ZGWbWS+4V
         fRaqKLI0GuU4ISrf58BYLcy32ohpBKE2oImRApER3A6K/mHWhVNQCVO2GTSDKjPritfd
         7g+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1792674904; x=1793279704;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=cjUsqgZZth1eqxAlntKd6CdIpuBHJp2+yqm8vzlTK2U=;
        b=FvVwhq1BKbHYZDCeQlLrrE24VJZejb3i/9G81OcRlGJbLoNoftR0yOMRGDGgbc880t
         k/oGJmJl7dBv+l9veyLrK55JFVhxlSmv8NvUpGtjZtI3Ne4eAdk/NTvcqO3y/pw4HViI
         JLRIMkW5sP4HNwEg+IPbvwlvP9qbZG91R2OFpWwzZ0X9rrEmfUemMrny92JNRr0wtKs4
         d/KUkKEyy4n5ZCcjTkFAJPCkfls3ptzU+RWztZUp+hoaeTEkOVKrhCFEMFFrU/LjR/AM
         KIhhURX4rDCJWDOaJPnErYObUanVWLBQfiskh1J211UovAPMkkErXxla1L7LX0odC3tQ
         IQDw==
X-Gm-Message-State: AFq9FYJ1aQb4DzSiFcSvapj3Z6zUyJ3lvScGp9AZZihyB6Pix+CucWcq
	s0FRQf5cBd4N6EhbQKbIL0qudenUVAOGraVlchVlI1Sh8k5/MuvenKWxgRLsPLDiWshQGFM+Hjr
	GhAoS22Yt06jTSxKch1o4lo14FyFBIsw=
X-Gm-Gg: AYBFou1CmiylDcDnvydCQiMEpMa6gfSHMesMXC8u7FHlGMohM8u3tsLkIou33DrQd8S
	emnFGf0liT1uoqekycHLGgJeGTFqy4ovvlDYmXf3IfLiOjuZ6W/gHIyJ6A3TYZ1oeEG3ADoE8j2
	oLTg+xU08oJkCQ940/Zp99H9CufBNSUjU6uqzlrGxrvRgFcl0KOFyEln9SOqx7BUBgKwOHF0SsW
	RMU1xzdKWBAHkTEQVDoD29jHcP0rnvHPY+8e6MPSTs0dXeN4GrwAfR5Ja9S/GyxP/7EfumSxQyW
	2yY+dbnNLlYZgRRcPo3uo1H0rzmkCWymcqXqjxXDkO410KpjXccSlQ/uaN32DnIZWxRpq7f89u5
	zkyIm3uLUrAnt4qFrjU+ua+XJJ/3/ukAS5WBmJOmY4sTOm3b6Ds0u1NrKb6uwUvAlBsCayvskSb
	0dTwbCZ2FguegmuueIP/P83OOUbPSjEmhKv4SC3TC00h8wQdSH2Fm+cmA7GWXy5WaJ/Q==
X-Received: by 2002:a17:902:c949:b0:2e9:9a19:c54 with SMTP id
 d9443c01a7336-2ea4402a230mr34787075ad.50.1792674903567; Thu, 22 Oct 2026
 06:15:03 -0700 (PDT)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <atcEqHErXaGiMu4J@pks.im>
X-Gm-Features: AclHuK_i7d2FKd6xBhDYvIAbnwuA1IdbGlSSn4kQuA7-ike-3HYwmOXteYVcXAg
X-Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>, 
	Rubén Justo <rjusto@gmail.com>, 
	Ævar Arnfjörð Bjarmason <avarab@gmail.com>