git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about git rev-list --max-count=n
@ 2016-09-27 10:40 Ruediger Meier
  2016-09-27 14:10 ` [PATCH] rev-list-options: clarify the usage of -n/--max-number Pranit Bauva
  0 siblings, 1 reply; 9+ messages in thread
From: Ruediger Meier @ 2016-09-27 10:40 UTC (permalink / raw)
  To: git

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
  

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-09-28  1:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-27 10:40 question about git rev-list --max-count=n Ruediger Meier
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).