From: Junio C Hamano <gitster@pobox.com>
To: Josh Boyer <jwboyer@gmail.com>
Cc: Konstantin Khomoutov <kostix+git@007spb.ru>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: Specifying N revisions after the initial commit
Date: Tue, 22 Sep 2015 12:55:30 -0700 [thread overview]
Message-ID: <xmqqpp1a2pql.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <CA+5PVA6YWJizRjseeJ4EpRya0Mpyrv3DoNsB3=Gi=dOiAoDfHg@mail.gmail.com> (Josh Boyer's message of "Tue, 22 Sep 2015 15:10:42 -0400")
Josh Boyer <jwboyer@gmail.com> writes:
> On Tue, Sep 22, 2015 at 2:40 PM, Konstantin Khomoutov
> ...
>> Hence, given any particular commit, you're able to trace all of its
>> ancestry, but the reverse is not possible.
>
> That makes sense. I suppose I will have to resort to parsing output
> of git-rev-list or something. Thanks for the reminder.
I think Konstantin explained why it fundamentally does not make
sense to ask "which one is the Nth one after the root". I am not
sure how running rev-list and count its output would help, unless
you are now solving a different problem (perhaps "find all the ones
that are Nth after some root", which does have an answer).
next prev parent reply other threads:[~2015-09-22 19:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-22 18:32 Specifying N revisions after the initial commit Josh Boyer
2015-09-22 18:40 ` Konstantin Khomoutov
2015-09-22 19:10 ` Josh Boyer
2015-09-22 19:55 ` Junio C Hamano [this message]
2015-09-22 20:11 ` Josh Boyer
2015-09-22 20:40 ` Theodore Ts'o
2015-09-22 20:42 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqpp1a2pql.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jwboyer@gmail.com \
--cc=kostix+git@007spb.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox