From: Junio C Hamano Date: Mon, 07 Jul 2008 18:04:45 GMT Subject: Re: [FIXED PATCH] Make rebase save ORIG_HEAD if changing current branch Message-ID: <7vlk0d4lky.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080707111803.GF31490@mit.edu> Theodore Tso writes: > True, but (and please correct me if I'm wrong) ORIG_HEAD will always > be pointing out HEAD before the user typed pretty much any git > porcelein command (which saves HEAD into ORIG_HEAD), but with reflogs, > it you have to paw through multiple HEAD@{n} to find the 'n' which > corresponds to state before executing the git plumbing command, since > multiple git plumbing commands could have updated the HEAD's reflog, > right? You can inspect HEAD's reflog for individual steps, or the branch's reflog for the aggregated moves (try rebasing a few patches on 'test' branch and inspect "git log -g HEAD" and "git log -g test"). > One of the things that's been on my 'twoud be nice list is having an > option to "git reflog show" which prints the timestamp associated with > each reflog entry, $ git log -g HEAD@{now} $ git log -g test@{now} Please don't complain that interface to specify timestamp output is dirty to me -- I share the same feeling, and it was not my invention. But at least it works ;-)