From: Ruediger Meier <sweet_f_a@gmx.de>
To: git@vger.kernel.org
Subject: question about git rev-list --max-count=n
Date: Tue, 27 Sep 2016 12:40:19 +0200 [thread overview]
Message-ID: <201609271240.19759.sweet_f_a@gmx.de> (raw)
Hi,
git rev-list --max-count=n
seems to always list the _last_ (newest) n commits. Is there any
functionality to list the _first_ n commits?
I've tried to add --reverse hoping that this would do it but it does
not.
The manual could be a bit more clear about that:
--max-count=<number> Limit the number of commits to output.
If it really would only limit the _output_ (like head -n), then
IMO --reverse should do what I want.
Regarding my initial question. Maybe we could support
--max-count=-n
to list the first n commits.
cu,
Rudi
next reply other threads:[~2016-09-27 10:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-27 10:40 Ruediger Meier [this message]
2016-09-27 14:10 ` [PATCH] rev-list-options: clarify the usage of -n/--max-number Pranit Bauva
2016-09-27 16:51 ` Junio C Hamano
2016-09-27 20:32 ` Pranit Bauva
2016-09-27 20:44 ` [PATCH v2] rev-list-options: clarify the usage of --reverse Pranit Bauva
2016-09-27 21:51 ` Philip Oakley
2016-09-27 22:12 ` Junio C Hamano
2016-09-27 22:21 ` Philip Oakley
2016-09-28 1:52 ` Pranit Bauva
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=201609271240.19759.sweet_f_a@gmx.de \
--to=sweet_f_a@gmx.de \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.