From: Jeff King <peff@peff.net>
To: Eugen Konkov <kes-kes@yandex.ru>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Can not list stash (git version 2.30.0)
Date: Wed, 7 Apr 2021 15:48:16 -0400 [thread overview]
Message-ID: <YG4MgBMJGBbIyGDJ@coredump.intra.peff.net> (raw)
In-Reply-To: <1851413381.20210407204938@yandex.ru>
On Wed, Apr 07, 2021 at 08:49:38PM +0300, Eugen Konkov wrote:
> I am in progress of rebasing
>
> ~/e/Auth/Mojolicious/Plugin $ git rebase aa3376
> Created autostash: 4018bc7
> hint: Waiting for your editor to close the file...
>
>
> while I am in editor I switched to different console to view created autostash:
>
> ~/e/Auth $ git stash list
>
> and see nothing
>
> but can view stash by its id:
> ~/e/Auth $ git show 4018bc7
> commit 4018bc7bc870eb37aa35f40a0f612ca55a586045
> Merge: a790392 674e39f
> .....
If you run with GIT_TRACE=1, you can see that the autostash feature uses
"git stash create" and not "git stash push". That creates the stash
commit but _doesn't_ push it onto the stash list.
So it's working as intended. The rationale comes from the very
first commit adding autostash, 587947750b (rebase: implement
--[no-]autostash and rebase.autostash, 2013-05-12), which says:
The advantage of this approach is that we do not affect the normal
stash's reflogs, making the autostash invisible to the end-user. This
means that you can use 'git stash' during a rebase as usual.
-Peff
prev parent reply other threads:[~2021-04-07 19:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-07 17:49 Can not list stash (git version 2.30.0) Eugen Konkov
2021-04-07 19:48 ` Jeff King [this message]
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YG4MgBMJGBbIyGDJ@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=kes-kes@yandex.ru \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).