git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG? git log -Sfoo --max-count=N
@ 2011-03-06 21:37 Óscar Fuentes
  2011-03-07 12:46 ` [RFC/PATCH] " Matthieu Moy
  0 siblings, 1 reply; 8+ messages in thread
From: Óscar Fuentes @ 2011-03-06 21:37 UTC (permalink / raw)
  To: git

The documentation says

--max-count=<number> 
  Limit the number of commits output

but when used with -S as in

git log -Sfoo --max-count=N

it acts as "inspect only the N first commits", i.e. if `foo' is not
present on any of the first N commits no output is shown.

Using other filtering options (such as `--grep=' or `-- somepath')
together with --max-count=N will output at most N commits regardless of
the position on the history of those commits, as expected.

Tested with git 1.7.1 and 1.7.4.

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

end of thread, other threads:[~2011-03-10 22:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-06 21:37 BUG? git log -Sfoo --max-count=N Óscar Fuentes
2011-03-07 12:46 ` [RFC/PATCH] " Matthieu Moy
2011-03-08 19:22   ` Junio C Hamano
2011-03-09 20:52     ` [PATCH] log: fix --max-count when used together with -S or -G Matthieu Moy
2011-03-09 21:38       ` Jeff King
2011-03-09 21:49         ` Matthieu Moy
2011-03-09 22:27         ` Junio C Hamano
2011-03-10 22:39           ` Jeff King

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).