git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there a way to find out which commit "git rebase --skip" skipped?
@ 2012-08-16  6:59 Luke Diamand
  2012-08-16 15:43 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Luke Diamand @ 2012-08-16  6:59 UTC (permalink / raw)
  To: Git Users; +Cc: Pete Wyckoff

If I do "git rebase --skip", is there a way to find out the commit SHA
that was skipped (other than just parsing the output of the command) ?

I'd like to modify git-p4 so that it can automatically skip past
conflicting changes, but I'd like it to keep a log of which commits
were skipped.

Thanks,
Luke

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to find out which commit "git rebase --skip" skipped?
  2012-08-16  6:59 Is there a way to find out which commit "git rebase --skip" skipped? Luke Diamand
@ 2012-08-16 15:43 ` Junio C Hamano
  2012-08-17  9:32   ` Luke Diamand
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2012-08-16 15:43 UTC (permalink / raw)
  To: Luke Diamand; +Cc: Git Users, Pete Wyckoff

Luke Diamand <luke@diamand.org> writes:

> If I do "git rebase --skip", is there a way to find out the commit SHA
> that was skipped (other than just parsing the output of the command) ?

There currently isn't, and I do not think it is doable in general
when the command ever gives control back to the user to futz with
the history, expecting the user only to fix up the conflict and make
a single commit (in which case you would want to say "that old
commit was replayed as this commit with different patch id) or say
"rebase --skip" (in which case you could record "that old commit was
manually skipped), but the user can do other things like resetting
the head to lose commits that have been rebased already, adding new
commits manually before continuing, etc., all of which will be done
outside of your control.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to find out which commit "git rebase --skip" skipped?
  2012-08-16 15:43 ` Junio C Hamano
@ 2012-08-17  9:32   ` Luke Diamand
  2012-08-17 17:48     ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Luke Diamand @ 2012-08-17  9:32 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Users, Pete Wyckoff

On 16/08/12 16:43, Junio C Hamano wrote:
> Luke Diamand<luke@diamand.org>  writes:
>
>> If I do "git rebase --skip", is there a way to find out the commit SHA
>> that was skipped (other than just parsing the output of the command) ?
>
> There currently isn't, and I do not think it is doable in general
> when the command ever gives control back to the user to futz with
> the history, expecting the user only to fix up the conflict and make
> a single commit (in which case you would want to say "that old
> commit was replayed as this commit with different patch id) or say
> "rebase --skip" (in which case you could record "that old commit was
> manually skipped), but the user can do other things like resetting
> the head to lose commits that have been rebased already, adding new
> commits manually before continuing, etc., all of which will be done
> outside of your control.

All I need is to be able to get the commit *immediately* after the 
failed 'git rebase'. It looks like .git/ORIG_HEAD has exactly what I need.

Thanks,
Luke

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there a way to find out which commit "git rebase --skip" skipped?
  2012-08-17  9:32   ` Luke Diamand
@ 2012-08-17 17:48     ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2012-08-17 17:48 UTC (permalink / raw)
  To: Luke Diamand; +Cc: Git Users, Pete Wyckoff

Luke Diamand <luke@diamand.org> writes:

> All I need is to be able to get the commit *immediately* after the
> failed 'git rebase'. It looks like .git/ORIG_HEAD has exactly what I
> need.

Depends on what you meant by "commit that was skipped", but the
above makes me nervous.  ORIG_HEAD is set to the tip of the branch
being rebased at the very beginning, and updated to the current HEAD
(i.e. the result of the last successful step) before --skip is given.
I do not think it ever points into the commits in the original history
that is being replayed.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-17 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16  6:59 Is there a way to find out which commit "git rebase --skip" skipped? Luke Diamand
2012-08-16 15:43 ` Junio C Hamano
2012-08-17  9:32   ` Luke Diamand
2012-08-17 17:48     ` Junio C Hamano

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).