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

Re: stgit: lost all my patches again

From
Karl Hasselström <kha@treskal.com>
Date
Nov 28, 2007, 06:32 UTC
Message-ID
<20071128063245.GA11163@diana.vm.bytemark.co.uk>
In-Reply-To
<9e4733910711271859w7b7dc141q93e3c9f67693a54@mail.gmail.com>
On 2007-11-27 21:59:00 -0500, Jon Smirl wrote:
> Karl, Catalin, can stgit install a pre-rebase hook and disable 'git
> rebase' when stg is active on the branch? This would keep me from
> destroying my patch stack when my fingers get ahead of me. Might be
> good to disable anything else that can cause damage too.

Mmmm. We'd have to define "damage"; "stg repair" can take care of quite a lot of things nowadays. Committing new stuff on top of a patch series is no problem, for example, and "git reset --hard HEAD^ && stg repair" is equivalent to "stg pop". I can see how "git rebase" would still be a nuisance, though.

Patch? :-)
Presumably, we'd want the hook to be a Python script, so as to
  * not make it more difficult to port StGit to Windows someday;
  * make it possible for the hook to call StGit functions; and
  * not force the project's contributors to learn more shell scripting
    than they have to. :-)
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Jon Smirl
Message 26 of 26 in “stgit: lost all my patches again”
  1. Jon SmirlNov 27, 2007
  2. Jakub NarebskiNov 27, 2007
  3. Jon SmirlNov 27, 2007
  4. Karl HasselströmNov 28, 2007
  5. StGit hooksKarl Hasselström, Nov 28, 2007
  6. Andreas EricssonNov 28, 2007
  7. Karl HasselströmNov 28, 2007
  8. Andreas EricssonNov 28, 2007
  9. Karl HasselströmNov 28, 2007
  10. Andreas EricssonNov 28, 2007
  11. Jon SmirlNov 28, 2007
  12. Andreas EricssonNov 28, 2007
  13. Karl HasselströmNov 28, 2007
  14. Andreas EricssonNov 28, 2007
  15. Karl HasselströmNov 28, 2007
  16. Junio C HamanoNov 28, 2007
  17. Jon SmirlNov 28, 2007
  18. Karl HasselströmNov 28, 2007
  19. Jon SmirlNov 28, 2007
  20. Karl HasselströmNov 28, 2007
  21. Jon SmirlNov 28, 2007
  22. Karl HasselströmNov 28, 2007
  23. Make "stg repair" help text more helpfulKarl Hasselström, Nov 30, 2007
  24. Junio C HamanoNov 28, 2007
  25. Jon SmirlNov 28, 2007
  26. Karl HasselströmNov 28, 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.