Article View: linux.kernel.git
Article #830Re: [PATCH 5/5] completion: drop "stash save" completion altogether
From: Ben Knoble
Date: Mon, 19 Oct 2026 20:01
Date: Mon, 19 Oct 2026 20:01
31 lines
12030 bytes
12030 bytes
> 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 ?
Technical Details
Message-ID:
<35E6B235-6370-4F94-A0B1-4B6A941D8C47@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-72443-linux-kernel-git=dewy.ruReferences:
<atHZ0gV5Pz80l3ho@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-72443-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com (Ben Knoble)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 5/5] completion: drop "stash save" completion altogether
Date: Mon, 19 Oct 2026 16:01:15 -0400
Organization: Usenet Network
Message-ID: <35E6B235-6370-4F94-A0B1-4B6A941D8C47@gmail.com>
References: <atHZ0gV5Pz80l3ho@pks.im>
MIME-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="3702616"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6eQHsy25iyOkeJbymnM9XCndiW4= sha256:69oWw7EPoqq6AzBpVIp4SCoZIEOYlzYcxf3chcl4ccw=
sha1:QSB6RVWWBtbuM7nI7k+ZtstVy6g= sha256:P2vl8O44tx7yASX0ulhRBlqnAnRFKYAMLn5vAnhQZZ8=
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 2CBD9110B07; Mon, 19 Oct 2026 23:05:00 +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 52tceozOd-dg;
Mon, 19 Oct 2026 23:04:53 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-72443-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id DB870110B05; Mon, 19 Oct 2026 23:04:44 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id DD50E26F5E; Mon, 19 Oct 2026 20:01:29 +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=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792440089;
b=lFLHbOOIZqxcglrz3tjqbdKJoadpk4DPz2lOySbIQjfoo/rKnwAA7wnN199ui1Rr+nhk
FqbJ4mVl3mY1lHrQsOXPts3CO19RMR6/cr8pObwh+Hn04t8aIYYxTNa6m2x6pK8IjUBT/
v3JN9u4GGEQCIIqEFbjJR+kPI4lwqhFzm6OdAv/WvF1wHcYBZ4ox6wFncoDTsEozUqO3F
DFbSAv8BLm/MbBDoT/DJWrzKynz5rvrK1gvuTzK4vcVhqibtTOj3AAnedx9mj4B+0WNjX
3InpKqBYEd/0Lwe3ugVblybGn5Lf9ChPUpEK0Vekc0VfrgTuMAa6N376rsPmDlwgl5g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792440089;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Content-Type:Content-Transfer-Encoding:From:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:Mime-Version:Subject:Date:Message-Id:References:
Cc:In-Reply-To:To:X-Mailer;
bh=i6l4muAYkPPKjqS+VsLG56eWMRTTTZraDhKlp7f6b9s=;
b=X8O5O6k9Zdhup6VNcUWXjv6TQQ5d2hC1rVt1FVnw8L7aRtT1r17Lo2z9tB6Mg/88x6Qb
d3pGKZpjr1k6Hu4yMPLQ4dwC3YA+H3DHwfDfH7pZ5AjZBYAp+NQygwKhdlfklmvQ9YFlf
ajik4xoUQjdUQ6RPmDlLukg50ui55OsfPQAU4oPXz9rRPQ7T8CrJXlEQfBAhMAjAH9l7H
jE6zvbNuR817hyz9YWU1gz7iaypw9qZQE5sDnewU5ICmQv37ss7k4TwwM0Wre1mw2o7ir
x3jC0AVECyUs6yKJe1mEgfiDdgmt0mSi3PjsZ+vgXg/Ska90et85a7i3kkOhWLizfuQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=q2ypVecc;
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 E615E606A31C;
Mon, 19 Oct 2026 20:01:28 +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=q2ypVecc
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.169
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792440088;
b=TdVVeDl7A8AexspFbw+Kv9r+M5wGch62u9yxWT9fP+V0izjvIzsxcAMyK8QzeqGLo2kz
F0F9WqWjs6coyYPeGR3IZjj6WJ5Rehn6+pgspS6tIE9xHbSjC5Qf8PEW7BAyx+iCodU91
GbiiSap7nrvCfHS+tl89Bdy67OxrvCStExTtY7bAnaiO2c9tVJbUQkxC35MlpufvRL6oF
A7K4i7KnZI+dUioM0BTn54c9lg3wQml0R+8vqYJtWa5/oNcjT3SzP91jzY0+TWM+B6pwD
9MhXtK1vJB/rtoceZWWqJRx8oAcsJ19rurBq8Q0lmWHqpBP0LhaIg/u4cMzJzUvDngQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792440088;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Content-Type:
Content-Transfer-Encoding:From:Mime-Version:Subject:Date:Message-Id:
References:Cc:In-Reply-To:To:X-Mailer;
bh=i6l4muAYkPPKjqS+VsLG56eWMRTTTZraDhKlp7f6b9s=;
b=n1NzDMPg4j+YrCPSC6Cg4SZ/XvScn7H67grxef/MkAO3SXqzfZlO8mooSrQJJRIJLiKX
vmhQuopSlNXfCkhSrmSUdCM40XqJHV/jCrWXLD8fMp9q6/guGTMLG1QVYGsswS1HJIiaV
Ofv/LDvNGTON/5H/NWnDPAoL5zZ0WWM/3W7vRLBr5kbEGRaQM37YNzGvQOFxoE4FSmYFz
OtqhqWJgRo6fgd+2AfdwgVOojYT65RvGXwqtHGmows/eH27p29XoTmlaJKJHhIYLD1KQl
fb9HDMAz5hCzBc4VYeqTHNMkGjt43cOY2YvSeVAUDAz3lP7SmrIemR4DaQX1fzFA8dw==
X-ARC-Authentication-Results: i=1; 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=q2ypVecc;
arc=none smtp.remote-ip=209.85.128.169
X-Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169])
(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 BB1CD606A31B
for <git@vger.kernel.org>; Mon, 19 Oct 2026 20:01:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BB1CD606A31B
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-yw1-f169.google.com with SMTP id 00721157ae682-8871ada1a26so15307707b3.1
for <git@vger.kernel.org>; Mon, 19 Oct 2026 13:01:27 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792440087; x=1793044887; darn=vger.kernel.org;
h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
:from:content-transfer-encoding:content-type:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=i6l4muAYkPPKjqS+VsLG56eWMRTTTZraDhKlp7f6b9s=;
b=q2ypVeccmI3G21DOm8lk49MW0TXlVWbIBGxIQVD+SejhIf6OrLhR+x7/jolq4ZKS1R
jzvsNLTp9ixBmonWrjAry9wR8RXrq99IeUAHucU6pbulrf+cvjuLuVQTdPB6lelYjBfv
ynNKek71cndLUY/2I5LNol5vv4rbKz4DdyfnEl7j02PKXs3zId/WIgiRCLm97Ee+HY5A
0guiSazEN+aXzTpdhliWRS2dszUxH0zv6EsIIWMn0w6Kk6fhW9z8dZsGrZWc8oIahh5a
fYVtyCbI3I+pV6flUYa0uNtOwoQuVTrE5WEILxbtBBm7j3YZlLrikCIzd9048Jg3olCc
cMnA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792440087; x=1793044887;
h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
:from:content-transfer-encoding:content-type:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=i6l4muAYkPPKjqS+VsLG56eWMRTTTZraDhKlp7f6b9s=;
b=07LL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6q48b+
DksQjtV98OopB3KI8qXAhutgJm1RqwbvOHwcLwq2QX65Vb0=
X-Received: by 2002:a05:690c:e3ce:b0:8a8:9149:e4da with SMTP id 00721157ae682-8b0f22125a6mr28165317b3.108.1792440086438;
Mon, 19 Oct 2026 13:01:26 -0700 (PDT)
X-Received: from smtpclient.apple ([2605:a601:9092:700:a9b4:ceb5:f03c:386b])
by smtp.gmail.com with ESMTPSA id 00721157ae682-8b11b866782sm4343957b3.32.2026.10.19.13.01.25
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 19 Oct 2026 13:01:26 -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-Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Rubén Justo <rjusto@gmail.com>,
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
X-In-Reply-To: <atHZ0gV5Pz80l3ho@pks.im>
X-Mailer: iPhone Mail (23D8133)