From fa4aab7f84061c7253de6c38162f5b71111f5139 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 3 Apr 2020 12:30:39 +0200 Subject: [PATCH] Improve svn-rev to search for pattern at line beginning. * gcc-git-customization.sh: Search for the pattern at line beginning only. --- contrib/ChangeLog | 5 +++++ contrib/gcc-git-customization.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 488a32ca69b..ab9254baac2 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 f3e48316ead..a932bf8c06a 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 -- 2.30.2