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

Re: StGit: kha/safe and kha/experimental updated

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Mar 20, 2008, 15:25 UTC
Message-ID
<b0943d9e0803200825y18971975qd79bf51157a97684@mail.gmail.com>
In-Reply-To
<20080319013832.GB28781@diana.vm.bytemark.co.uk>
On 19/03/2008, Karl Hasselström <kha@treskal.com> wrote:
Show 19 quoted lines
> On 2008-03-19 02:28:04 +0100, Karl Hasselström wrote:
>
>  > plus a new and shiny "stg reset" prototype!
>
>
> It works like this:
>
>   1. Every StGit command that modifies anything writes the new state
>      to a log. The log is a git branch called <branchname>.stgit.
>
>   2. When you've done something you regret, find the state in the log
>      you want to return to and just say (for example)
>
>        $ stg reset master.stgit~3
>
>      Resetting is recorded in the log just like everything else, so to
>      undo a reset you just did, simply say
>
>        $ stg reset master.stgit^
That's cool :-), thanks. We can even add aliases for 'undo' and 'redo'.
-- 
Catalin
Previous: Karl HasselströmNext: Karl Hasselström
Message 3 of 5 in “StGit: kha/safe and kha/experimental updated”
  1. Karl HasselströmMar 19, 2008
  2. Karl HasselströmMar 19, 2008
  3. Catalin MarinasMar 20, 2008
  4. Karl HasselströmMar 24, 2008
  5. Catalin MarinasMar 25, 2008

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.