]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r323405: newvers.sh: speed up failing git-svn revision search
authoremaste <emaste@FreeBSD.org>
Sat, 7 Oct 2017 20:18:20 +0000 (20:18 +0000)
committeremaste <emaste@FreeBSD.org>
Sat, 7 Oct 2017 20:18:20 +0000 (20:18 +0000)
commit69177ab7d2a8bcddf297fc36372d151102f66af2
tree444424388fda322ff0f1b917f998d1db40549e59
parent5715556bd55bb67977e871b1a07c0aa429de2fde
MFC r323405: 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.

Sponsored by: The FreeBSD Foundation
sys/conf/newvers.sh