From: Jakub Narebski Date: Sun, 05 Feb 2012 21:57:55 GMT Subject: Re: Specifying revisions in the future Message-ID: In-Reply-To: Andreas Schwab writes: > Matthieu Moy writes: > > > "the successor of ", OTOH, is not well defined, since there can > > be several successors, and one can't order them reliably (you can't > > really know the set of successors, because they can exist in different > > repositories). > > Yet it would be nice to have a concise notation for "the nth successor > of towards " (using --first-parent ordering when > ambiguous). First, "the nth successor"... from which refs? Commit objects have pointers in one direction only, from commit to its ancestors (earlier commits). Second, `--first-parent' won't help here. Take for example the following situation: ---X<---*<---.<---A \ \--.<---B X+3 is A or B? Note that pointers point _to_ '*' commit, so there is not first or second here - no natural ordering like in the case of commit parents. -- Jakub Narebski