All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Organov <osv@javad.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: David Symonds <dsymonds@gmail.com>,
	Jon Smirl <jonsmirl@gmail.com>,
	Junio C Hamano <gitster@pobox.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: Rollback of git commands
Date: Wed, 28 Nov 2007 21:39:56 +0300	[thread overview]
Message-ID: <87lk8imcxv.fsf@osv.gnss.ru> (raw)
In-Reply-To: <20071128165033.GA31218@elte.hu> (Ingo Molnar's message of "Wed\, 28 Nov 2007 17\:50\:33 +0100")

Ingo Molnar <mingo@elte.hu> writes:

> * David Symonds <dsymonds@gmail.com> wrote:
>
>> On Nov 28, 2007 12:49 PM, Jon Smirl <jonsmirl@gmail.com> wrote:
>> > Rollback is too strong of name for this. Checkpoints would be better.
>> > The idea is to record the total system state at convenient moments and
>> > then allow moving back to the checkpointed state. The object store
>> > supports this, but the rest of the state in .git/* isn't being
>> > recorded.
>> 
>> rsync -a .git /somewhere/safe
>> 
>> I fear that what you ask becomes a chicken-and-egg scenario: where/how 
>> is this checkpointing information going to be stored? If it's tightly 
>> integrated with Git, what happens when you want to roll-back a 
>> checkpoint-restore?
>
> well, it would/could be the normal undo/redo semantics of editors: you 
> can undo-redo in a linear history fashion, in an unlimited way, but the 
> moment you modify any past point of history then the redo future is 
> overriden. (but the 'past' up to that point is still recorded and 
> available)

Or it could be Emacs-like: 'undo' is just another operation that is a
subject for further undo's ;) Then there is no need for 'redo', and no
need to override either the future or the past. Besides this obvious
technical superiority will help to maintain git's reputation of being
hard to grok ;)

-- 
Sergei.

  reply	other threads:[~2007-11-28 18:41 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27 23:23 Rollback of git commands Jon Smirl
2007-11-28  0:51 ` Junio C Hamano
2007-11-28  1:33   ` Jon Smirl
2007-11-28  1:49     ` Jon Smirl
2007-11-28  1:57       ` David Symonds
2007-11-28 16:50         ` Ingo Molnar
2007-11-28 18:39           ` Sergei Organov [this message]
2007-11-28 18:52             ` Nicolas Pitre
2007-11-28  4:07       ` Geert Bosch
2007-11-28 16:20         ` Jeff King
2007-11-28 16:23           ` Jon Smirl
2007-11-28 16:28             ` Jeff King
2007-11-28  3:55     ` Sean
2007-11-28  4:37       ` Jon Smirl
2007-11-28  4:40         ` Sean
2007-11-28  4:53           ` Jon Smirl
2007-11-28 14:53         ` Nicolas Pitre
2007-11-28 15:58           ` Jon Smirl
2007-11-28 16:26             ` Nicolas Pitre
2007-11-28 16:37               ` Jon Smirl
2007-11-28 16:46                 ` Nicolas Pitre
2007-11-28 17:03                   ` Jon Smirl
2007-11-29  8:42               ` Karl Hasselström
2007-11-28  4:57       ` Junio C Hamano
2007-11-28  9:22     ` Karl Hasselström
2007-11-28 15:13       ` Jon Smirl
2007-11-28 21:47         ` Daniel Barkalow
2007-11-28 21:58           ` Steven Grimm
2007-11-28 22:48             ` Daniel Barkalow
2007-11-28 23:42           ` Jon Smirl
2007-11-29  8:28             ` Theodore Tso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lk8imcxv.fsf@osv.gnss.ru \
    --to=osv@javad.com \
    --cc=dsymonds@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jonsmirl@gmail.com \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.