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 25, 2008, 10:52 UTC
Message-ID
<b0943d9e0803250352g2c6d441cke3bcff5d9c0ee769@mail.gmail.com>
In-Reply-To
<20080324182647.GD23337@diana.vm.bytemark.co.uk>
On 24/03/2008, Karl Hasselström <kha@treskal.com> wrote:
Show 17 quoted lines
> On 2008-03-20 15:25:04 +0000, Catalin Marinas wrote:
>
>  > We can even add aliases for 'undo' and 'redo'.
>
>
> It's not entirely clear (to me at least) exactly what undo and redo
>  should do. Something like this maybe:
>
>   undo: If the log begins with k "undo" entries (k >= 0), reset to
>         log~(2k+1).
>
>   redo: Find the most recent "undo" entry that hasn't been cancelled
>         out by a "redo". If this is the most recent log entry (except
>         the cancelled-out ones), reset to it; otherwise, complain that
>         the last command was not an undo or redo.
>
>  I _think_ this does what one naively expects undo and redo to do.

Yes, something like this. Anyway, this can be explained in the help without adding separate commands (at least for now).

-- 
Catalin
Previous: Karl Hasselström
Message 5 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.