From: Junio C Hamano Date: Mon, 12 May 2025 15:53:52 GMT Subject: Re: [PATCH v5 3/4] builtin/stash: provide a way to export stashes to a ref Message-ID: In-Reply-To: <67ba7cf4-e6b9-4c05-9960-e95fdcd4ed97@gmail.com> Phillip Wood writes: > I think the commit message would be more convincing if it concentrated > on the need to import / export chains of stashes and the convenience of > having a dedicated command to import a stash as one can export a single > stash with > > git push refs/stash@{}:refs/exported-stash > > and then import it with > > git pull refs/exported-stash > git update-ref refs/stash FETCH_HEAD Oooh, then as long as the other side has enabled reflog, you could even do for n in $(seq 0 N) do git push +refs/stash@{$n}:refs/stash done and we can call it done? ;-) > Having said that I do agree that adding these new commands is a good > idea. Yeah, I do not think there is no reason to oppose having an export/import pair.