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

Re: [PATCH] Add 'preserve' subcommand to 'git stash'

From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Date
Jun 18, 2023, 09:47 UTC
Message-ID
<ZI7SzSuT26XXKzah@ugly>
In-Reply-To
<f6a510f8-f569-6b1e-a74d-cdd103b39c10@gmail.com>
On Sun, Jun 18, 2023 at 12:05:21PM +0300, Nadav Goldstein wrote:
Show 5 quoted lines
>Let me try to explain my motivation:
>I heavily use stash to set quick points in my code so I could go back to 
>them (during thought process), and I want to store my changes quickly 
>and continue from there.
>

so why are you (ab-)using stash for that, rather than just committing each time, and later cleaning it by using `reset [--mixed]` and re-committing (or using `rebase --interactive`)? the reflog holds information about "lost" commits (the stash is just a somewhat special reflog, too).

regards, ossi

Previous: Nadav GoldsteinNext: Nadav Goldstein
Message 8 of 10 in “Add 'preserve' subcommand to 'git stash'”
  1. Add 'preserve' subcommand to 'git stash'Nadav Goldstein via GitGitGadget, Jun 16, 2023
  2. Junio C HamanoJun 16, 2023
  3. Oswald BuddenhagenJun 16, 2023
  4. Junio C HamanoJun 16, 2023
  5. Oswald BuddenhagenJun 17, 2023
  6. Junio C HamanoJun 17, 2023
  7. Nadav GoldsteinJun 18, 2023
  8. Oswald BuddenhagenJun 18, 2023
  9. Nadav GoldsteinJun 18, 2023
  10. Junio C HamanoJun 19, 2023

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.