On Sun, Dec 23, 2007 at 01:20:53 -0800, Junio C Hamano wrote: > * ns/checkout-push-pop (Wed Dec 5 07:04:06 2007 +0900) 1 commit > - git-checkout --push/--pop > > A reasonably cleanly written cute hack, and I do not see this breaking > the normal codepath. But I tend to agree with people that 'push' is > too late for forgetful mortals, and just a single "previous" would be > easier to use. Shouldn't reflog of a symbolic ref contain (or also contain) the name of pointee ref, instead of the resolved value? Than we could still get the exact past revisions by looking at the pointee reflog by time, but could also get the past branch names. It would require an extension to the commitish syntax for specifying how to resolve the pointee. Eg. HEAD^{1} would mean the previous sha1, HEAD^{1}{} would mean the previous branch (but current value of it), and, by extension, HEAD^{}{1} could mean previous value of currently selected branch. Hm, the slight problem seems to be, that users would want previously checked out branch even though commits were already done to the current one, so it is not the previous reflog entry anymore... -- Jan 'Bulb' Hudec <bulb@xxxxxx> - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html