From: Hanan Arshad <hananarshad619@gmail.com>
To: gitster@pobox.com
Cc: j6t@kdbg.org, git@vger.kernel.org, sandals@crustytoothpaste.net
Subject: Re: [RFC] git stash: add porcelain for sharing stashes through remotes
Date: Wed, 7 Oct 2026 11:31:55 +0500 [thread overview]
Message-ID: <20261007063155.4573-1-hananarshad619@gmail.com> (raw)
In-Reply-To: <xmqqzewsmaod.fsf@gitster.g>
> All of the three you listed (discovery, transfer, clean-up) become
> easier to work with if you used branches, branches have always had
> good support for these three (and other) operations, and I do not
> see a good reason to add a parallel support to do something similar.
I understand the concern. I think I did not explain the workflow that
originally motivated the RFC clearly enough.
The idea came from a workflow I used with Perforce shelves. One concrete
case is build configuration. The repository contains configuration
templates, while I may have several local configuration variants that
should not become part of the normal project history.
A tester may need to apply the same configuration while testing
different branches or revisions, for example:
branch A + configuration X
branch B + configuration X
release branch + configuration X
Using a branch for configuration X makes it another line of history
based on some revision. When the code being tested changes, that
configuration then has to be merged, rebased, cherry-picked, or
otherwise combined with the revision being tested.
What I want instead is an overlay: the tester chooses the code revision
and the temporary configuration independently, applies the
configuration for the test, and then discards it.
Perforce shelves give this kind of temporary handoff a straightforward
user-facing workflow. Git already has the underlying functionality as
well; that became clearer to me during this discussion. A stash can
already be pushed as a ref, so I agree that adding a separate
"publish" command would not be justified.
My motivation for the RFC is therefore not to add another transport or
storage mechanism. It is to see whether the existing stash/ref
functionality could have a more coherent UX for this kind of temporary
handoff, instead of requiring users to compose the generic ref,
push/fetch, and stash operations themselves.
This configuration-overlay workflow is one concrete use case that
motivated the idea. There may be other temporary handoff use cases, but
I do not want to rely on hypothetical cases to justify it.
Thanks,
Hanan
next prev parent reply other threads:[~2026-10-07 6:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-28 14:27 [RFC] git stash: add porcelain for sharing stashes through remotes Hanan Arshad
2026-09-29 22:19 ` brian m. carlson
2026-10-05 5:53 ` Hanan Arshad
2026-10-05 7:47 ` Johannes Sixt
2026-10-05 8:03 ` Hanan Arshad
2026-10-05 8:21 ` Johannes Sixt
2026-10-05 9:06 ` Hanan Arshad
2026-10-05 15:25 ` Junio C Hamano
2026-10-07 6:31 ` Hanan Arshad [this message]
2026-10-07 10:36 ` Johannes Sixt
-- strict thread matches above, loose matches on Subject: below --
2026-10-01 8:53 Hanan Arshad
2026-10-01 22:02 ` D. Ben Knoble
2026-10-01 22:16 ` Junio C Hamano
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=20261007063155.4573-1-hananarshad619@gmail.com \
--to=hananarshad619@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j6t@kdbg.org \
--cc=sandals@crustytoothpaste.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.