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

Re: stgit: lost all my patches again

From
Jon Smirl <jonsmirl@gmail.com>
Date
Oct 4, 2007, 13:06 UTC
Message-ID
<9e4733910710040606j75caa6bcn1e97e59c1285eb4b@mail.gmail.com>
In-Reply-To
<20071004083304.GB17778@diana.vm.bytemark.co.uk>
On 10/4/07, Karl Hasselström <kha@treskal.com> wrote:
Show 5 quoted lines
> Mmmph. This is not the only StGit command that's apparently not safe
> to run from a subdirectory. See e.g. https://gna.org/bugs/?9986.
>
> I plan to do some StGit hacking this weekend. I guess subdirectory
> safeness ought to be at the top of my list ...

Isn't a rollback log fairly easy to implement? Is there a single SHA after each operation? If so just record the commands and the sha to rollback.

I have also messed things up more than once using 'git merge linus' instead of 'stg rebase linus'. Should 'git merge' have a check to see if stg is active and refuse to run?

-- 
Jon Smirl
jonsmirl@gmail.com
Previous: Jon SmirlNext: Karl Hasselström
Message 4 of 7 in “stgit: lost all my patches again”
  1. Jon SmirlOct 4, 2007
  2. Karl HasselströmOct 4, 2007
  3. Jon SmirlOct 4, 2007
  4. Jon SmirlOct 4, 2007
  5. Karl HasselströmOct 4, 2007
  6. David BrownOct 4, 2007
  7. Karl HasselströmOct 4, 2007

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.