Re: [PATCH v5 0/4] Importing and exporting stashes to refs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 8, 2025 at 7:47 PM brian m. carlson
<sandals@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Stashes are currently stored using the reflog in a given repository.
> This is an interesting and novel way to handle them, but there is no way
> to easily move a stash across machines.  For example, stashes cannot be
> bundled, pushed, or fetched.

I'm probably missing something here after having skimmed the original
cover letter at
<20220310173236.4165310-1-sandals@xxxxxxxxxxxxxxxxxxxx>, but:

- Can't we "git push <remote> stash[@{n}]:<branch>" to share a stash somewhere?
- And then, doesn't "git stash apply [--index] <arbitrary sha>" work?
(At which point you could presumably create a new stash, though I'll
admit that's cumbersome relative to dedicated export/import.)

I can see how that doesn't help you quickly export a whole _chain_ of
stashes, so I'm not saying "this series seems like the wrong tack"
(far be it from me, who doesn't understand your use case, to say
that!). Rather, I'm confused about the inability to move a (single)
stash across machines.

Unrelated question: Can we import arbitrary refs into stashes? That
is, what happens if the commit structure doesn't look right? (Maybe I
should go read the tests and see.)

-- 
D. Ben Knoble





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux