git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Sean" <seanlkml@sympatico.ca>
Cc: "Jon Smirl" <jonsmirl@gmail.com>,
	"Git Mailing List" <git@vger.kernel.org>
Subject: Re: Rollback of git commands
Date: Tue, 27 Nov 2007 20:57:18 -0800	[thread overview]
Message-ID: <7vmysz9dch.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <BAYC1-PASMTP02DBA3FB25E09FE45F0BF2AE770@CEZ.ICE> (seanlkml@sympatico.ca's message of "Tue, 27 Nov 2007 22:55:05 -0500 (EST)")

"Sean" <seanlkml@sympatico.ca> writes:

>> After doing the commands I located my last commit before the rebase
>> and edited master back to  it. But my system was still messed up since
>> moving master got me out of sync with the state stg stored in .git/*.
>> The 'stg repair' command had changed the stored state.
>
>  From your description is seems that Git proper was able to handle the
> situation just fine.   It sounds instead like you're describing a problem
> with Stg where it became confused without a way to restore _its_ meta
> data.  There's not much Git itself can do to help in this situation
> unless Stg stores all of its meta-data as standard Git objects, rather
> than just using the .git directory.

Essentially, he does not want to use "git rebase" and have a way to
disable the command on a branch that stg is actively munging.  And that
is something git proper can help with the user, which is why I earlier
referred him to pre-rebase hook.

As you suggested, however, git proper should not know the internals of
Porcelains, so I'd rather not to have that logic deep in git-rebase
itself.  But the pre-rebase hook shoud be the appropriate place for the
user to actually populate with stg specific logic ("is stg set to
actively munge this branch") and activate it for his repository.

  parent reply	other threads:[~2007-11-28 11:18 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
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 [this message]
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=7vmysz9dch.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=jonsmirl@gmail.com \
    --cc=seanlkml@sympatico.ca \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).