Re: How to say HEAD~"all the way back - 1"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Petr Baudis wrote:

> On Thu, Feb 22, 2007 at 08:17:17PM CET, Bill Lear wrote:
>> Git "indexing" of commits has a way to "go back":
>> 
>> % git diff HEAD~3
>> 
>> Can I say "all the way back", or "all the way back - 1" somehow?
> 
> What would that mean? :)
> 
> Do you mean to the "root" of the history? The trouble is, there can be
> many of such roots (coming up from merges of previously disjunct
> histories); even the git project itself has several. Which one to
> choose?

Actually HEAD~n follows first parent, so it would be only one such root.

The git project has 4 or 5 roots for mainline + 3 separate disjoint 
branches with separate roots (html, man, todo).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


-
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]