From: Martin Liska Date: Fri, 3 Apr 2020 10:30:39 +0000 (+0200) Subject: Improve svn-rev to search for pattern at line beginning. X-Git-Tag: basepoints/gcc-11~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa4aab7f84061c7253de6c38162f5b71111f5139;p=thirdparty%2Fgcc.git Improve svn-rev to search for pattern at line beginning. * gcc-git-customization.sh: Search for the pattern at line beginning only. --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 488a32ca69b7..ab9254baac27 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2020-04-03 Martin Liska + + * gcc-git-customization.sh: Search for the pattern + at line beginning only. + 2020-01-24 Richard Earnshaw * gcc-git-customization.sh: Use users/ for the personal remote diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh index f3e48316ead3..a932bf8c06aa 100755 --- a/contrib/gcc-git-customization.sh +++ b/contrib/gcc-git-customization.sh @@ -18,7 +18,7 @@ ask () { } # Add a git command to find the git commit equivalent to legacy SVN revision NNN -git config alias.svn-rev '!f() { rev=$1; shift; git log --all --grep="From-SVN: r\\?$rev\\b" "${@}"; } ; f' +git config alias.svn-rev '!f() { rev=$1; shift; git log --all --grep="^From-SVN: r\\?$rev\\b" "${@}"; } ; f' # Add git commands to convert git commit to monotonically increasing revision number # and vice versa