git@vger.kernel.org mailing list mirror (one of many)
 help / Atom feed
* git-log bug: --grep and -number args are at odds
@ 2018-03-13 21:42 Alexander Mills
  2018-03-13 21:57 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Mills @ 2018-03-13 21:42 UTC (permalink / raw)
  To: git

$ git log -50   ###  I get 50 results

$ git log -50 --grep="*"   ### I get a lot more than 50...

shouldn't `-50` minimize the results length to 50 or fewer?

-alex

-- 
Alexander D. Mills
! New cell phone number: (415)766-8243
alexander.d.mills@gmail.com

www.linkedin.com/pub/alexander-mills/b/7a5/418/

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

* Re: git-log bug: --grep and -number args are at odds
  2018-03-13 21:42 git-log bug: --grep and -number args are at odds Alexander Mills
@ 2018-03-13 21:57 ` Ævar Arnfjörð Bjarmason
  0 siblings, 0 replies; 2+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2018-03-13 21:57 UTC (permalink / raw)
  To: Alexander Mills; +Cc: git


On Tue, Mar 13 2018, Alexander Mills jotted:

> $ git log -50   ###  I get 50 results
>
> $ git log -50 --grep="*"   ### I get a lot more than 50...
>
> shouldn't `-50` minimize the results length to 50 or fewer?

On what git version? On my 2.16.2.804.g6dcf76e118 on git.git this works
as expected:

    $ git -c grep.patternType=basic log --oneline -50 --grep="*" |wc -l
    50
    $ git -c grep.patternType=basic log --oneline -50 | wc -l
    50

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-13 21:42 git-log bug: --grep and -number args are at odds Alexander Mills
2018-03-13 21:57 ` Ævar Arnfjörð Bjarmason

git@vger.kernel.org mailing list mirror (one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.org/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox