Re: Is there a way to find out which commit "git rebase --skip" skipped?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 17, 2012, 17:48 UTC
- Message-ID
- <7vfw7lv28k.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <502E0F9C.5010303@diamand.org>
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.