From: "Óscar Fuentes" <ofv@wanadoo.es>
To: git@vger.kernel.org
Subject: BUG? git log -Sfoo --max-count=N
Date: Sun, 06 Mar 2011 22:37:37 +0100 [thread overview]
Message-ID: <87hbbgvske.fsf@wanadoo.es> (raw)
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.
next reply other threads:[~2011-03-06 21:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-06 21:37 Óscar Fuentes [this message]
2011-03-07 12:46 ` [RFC/PATCH] Re: BUG? git log -Sfoo --max-count=N 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
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=87hbbgvske.fsf@wanadoo.es \
--to=ofv@wanadoo.es \
--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 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).