git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git gc destroys autostash

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Feb 7, 2024, 21:47 UTC
Message-ID
<a18532ba-b168-4928-bced-d1604a483f24@app.fastmail.com>
In-Reply-To
<CAGHpTBKpYp370QTw93wK_RP+X2S+44jd-8kjodiUj4k0BoAEqA@mail.gmail.com>
On Wed, Feb 7, 2024, at 21:52, Orgad Shaneh wrote:
> Running git gc --prune=now during rebase with autostash deletes the
> autostash object, and it cannot be recovered when the rebase ends.

Things like this is why I don’t use the stash.[1][2] I just commit everything of value and non-value.

† 1: With very rare exceptions where the stash is popped before the
    whole operation leaves my own working memory
† 2: Also how you have to find unreachable objects using git-fsck(1) if
    you pop the last stash
-- 
Kristoffer Haugsbakk
Previous: Junio C Hamano
Message 3 of 3 in “git gc destroys autostash”
  1. Orgad ShanehFeb 7, 2024
  2. Junio C HamanoFeb 7, 2024
  3. Kristoffer HaugsbakkFeb 7, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.