From: Junio C Hamano <gitster@pobox.com>
To: 重田一聖 <kazumasa.shigeta@kanamei.com>
Cc: git@vger.kernel.org, shabbir.r.bhojani@gmail.com,
phillip.wood@dunelm.org.uk, ps@pks.im
Subject: Re: [PATCH v2] stash: expose untracked modes in create
Date: Fri, 09 Oct 2026 12:05:15 -0700 [thread overview]
Message-ID: <xmqqqzhyoftg.fsf@gitster.g> (raw)
In-Reply-To: <CANUHOw3N+_yWnh7=2-5fD+XxgYC9-M9fqL8GEjfEC6kN+CD=gg@mail.gmail.com> ("重田一聖"'s message of "Thu, 8 Oct 2026 08:58:26 -0500")
重田一聖 <kazumasa.shigeta@kanamei.com> writes:
> I realized that I had been treating two decisions as one:
> whether to introduce option parsing in `stash create`, and how much
> of what `do_create_stash()` already supports to expose now.
>
> I think adding option parsing and `-m/--message` now would be useful,
> even if we only expose a few options. That is because we should not
> need to revisit the basic parsing and message compatibility question
> just to add another script-oriented option later.
>
> That makes me think we don't need to expose everything
> `do_create_stash()` already supports in this patch. I now think
> we don't need to settle the public rules for other options and
> their interactions until there is a concrete need.
>
> In particular, I would prioritize leaving out options for which
> I haven't found a concrete request and whose interaction rules
> might make future additions harder if fixed now.
Stepping back a bit, I think the long-term goal should be to extend
the 'create' and 'store' pair sufficiently to allow script writers
to write their own 'git stash push' on top of them if they wanted
to. 'git stash create' does not have to be fully capable of doing
so with the current topic alone, but do you agree that improving
'create' in such a way should be our long-term goal?
With that future vision in mind, I am not sure I follow what you
said above. Shouldn't 'stash create --foo' work the same way as
'stash push --foo' while creating the stash entry, if '--foo' is
not an option relevant only to 'stash store'? Under what
circumstances does a '--foo' option that 'push' has (and for which
you have not seen a request) have to behave differently when added
to 'create', leaving a stash entry of a different shape from the
one 'push --foo' would create?
If the wish is "we want to start small because thinking about
each and every one of them and making sure they work correctly
is too much work for my liking", I would understand. But I
do not understand how "we worry we may overspecify without
knowing the need" would apply to this particular case, even
though it is a good thing to keep in mind in other situations.
Thanks.
next prev parent reply other threads:[~2026-10-09 19:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 7:42 [PATCH] stash: expose untracked modes in create Kazumasa Shigeta
2026-09-29 16:08 ` Phillip Wood
2026-10-01 17:44 ` 重田一聖
2026-10-05 16:37 ` Phillip Wood
2026-10-01 4:21 ` [PATCH v2] " Kazumasa Shigeta
2026-10-01 11:32 ` Patrick Steinhardt
2026-10-01 16:01 ` 重田一聖
2026-10-01 16:36 ` Junio C Hamano
2026-10-01 17:03 ` Junio C Hamano
2026-10-02 1:53 ` 重田一聖
2026-10-02 9:04 ` 重田一聖
2026-10-05 5:55 ` 重田一聖
2026-10-05 16:38 ` Phillip Wood
2026-10-06 9:25 ` 重田一聖
2026-10-06 9:57 ` Phillip Wood
2026-10-08 3:43 ` 重田一聖
2026-10-05 16:43 ` Junio C Hamano
2026-10-08 13:58 ` 重田一聖
2026-10-09 19:05 ` Junio C Hamano [this message]
2026-10-10 6:34 ` 重田一聖
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqqzhyoftg.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=kazumasa.shigeta@kanamei.com \
--cc=phillip.wood@dunelm.org.uk \
--cc=ps@pks.im \
--cc=shabbir.r.bhojani@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox