Konstantin Khomoutov <kostix@xxxxxxxx> writes: >> I do not see why the "name each rev relative to HEAD" formatting >> option cannot produce HEAD^2~2 etc. >> ... > My reading was that the OP explicitly wanted to just glance at a single > integer number and use it right away in a subsequent rebase command. > > I mean, use one's own short memory instead of copying and pasting. As everybody pointed out, a single integer number will fundamentally unworkable with distributed nature of Git that inherently makes the history with forks and merges. Besides, there is no way to feed "git log" with "a single integer number", without which "making git-log to enumerate" would not be all that useful ("git show HEAD~4" works but "git show 4" does not). All of these name-rev based suggestions were about using anchoring point with memorable name plus a short path to reach from there, which I think is the closest thing to "a single integer number" and still is usable for the exact purpose. "HEAD~48^2" on an integration branch would be "the tip of the side branch that was merged some 48 commits ago", for example.