{"thread":{"id":"55449","subject":"Can not list stash (git version 2.30.0)","startedAt":"2021-04-07T17:49:45Z","lastAt":"2021-04-07T19:48:21Z","messageCount":2,"participants":["Eugen Konkov","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"421132","messageId":"1851413381.20210407204938@yandex.ru","threadId":"55449","inReplyTo":null,"subject":"Can not list stash (git version 2.30.0)","fromName":"Eugen Konkov","fromEmail":"kes-kes@yandex.ru","sentAt":"2021-04-07T17:49:38Z","receivedAt":"2021-04-07T17:49:45Z","isPatch":false,"sender":{"key":"kes-kes@yandex.ru","avatar":null},"body":"Hello Git,\n\nI am in progress of rebasing\n\n~/e/Auth/Mojolicious/Plugin $ git rebase aa3376\nCreated autostash: 4018bc7\nhint: Waiting for your editor to close the file...\n\n\nwhile I am in editor I switched to different console to view created autostash:\n\n~/e/Auth $ git stash list\n\nand see nothing\n\nbut can view stash by its id:\n~/e/Auth $ git show 4018bc7\ncommit 4018bc7bc870eb37aa35f40a0f612ca55a586045\nMerge: a790392 674e39f\n.....\n\n\nExpected result: I should be able to see this autostash when `git stash list`\n\n\n\n--\nBest regards,\nEugen Konkov \n\n"},{"id":"421141","messageId":"YG4MgBMJGBbIyGDJ@coredump.intra.peff.net","threadId":"55449","inReplyTo":"1851413381.20210407204938@yandex.ru","subject":"Re: Can not list stash (git version 2.30.0)","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2021-04-07T19:48:16Z","receivedAt":"2021-04-07T19:48:21Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Apr 07, 2021 at 08:49:38PM +0300, Eugen Konkov wrote:\n\n> I am in progress of rebasing\n> \n> ~/e/Auth/Mojolicious/Plugin $ git rebase aa3376\n> Created autostash: 4018bc7\n> hint: Waiting for your editor to close the file...\n> \n> \n> while I am in editor I switched to different console to view created autostash:\n> \n> ~/e/Auth $ git stash list\n> \n> and see nothing\n> \n> but can view stash by its id:\n> ~/e/Auth $ git show 4018bc7\n> commit 4018bc7bc870eb37aa35f40a0f612ca55a586045\n> Merge: a790392 674e39f\n> .....\n\nIf you run with GIT_TRACE=1, you can see that the autostash feature uses\n\"git stash create\" and not \"git stash push\". That creates the stash\ncommit but _doesn't_ push it onto the stash list.\n\nSo it's working as intended. The rationale comes from the very\nfirst commit adding autostash, 587947750b (rebase: implement\n--[no-]autostash and rebase.autostash, 2013-05-12), which says:\n\n    The advantage of this approach is that we do not affect the normal\n    stash's reflogs, making the autostash invisible to the end-user.  This\n    means that you can use 'git stash' during a rebase as usual.\n\n-Peff\n"}]}