]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
newvers.sh: speed up failing git-svn revision search
authoremaste <emaste@FreeBSD.org>
Mon, 11 Sep 2017 00:14:04 +0000 (00:14 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 11 Sep 2017 00:14:04 +0000 (00:14 +0000)
commit87b953ecdbdf429450631ec3ed833f47da3c9a59
treef8528b3884c272980cface44bf2b316fc5f2c4b7
parent28ca50489508564693e90f28adc08178195e5c8b
newvers.sh: speed up failing git-svn revision search

In the case of running newvers.sh on a git tree w/o git-svn-id notes we
previously piped the entire 'git log' to grep. Add --grep to the log
invocation to avoid processing log entries of no interest.

This saves about 2-3 seconds of newvers.sh run time on my SSD laptop.
Later changes will bring further speedups.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
sys/conf/newvers.sh