HomeFreeBSD

MFC r323405: newvers.sh: speed up failing git-svn revision search

Description

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

Details

Provenance
emasteAuthored on
Parents
rS324396: MFC r323394: newvers.sh: accept "git-svn-id:" at the start of a line only
Branches
Unknown
Tags
Unknown