diff options
author | Martin Liska <mliska@suse.cz> | 2020-04-03 12:30:39 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-04-03 12:30:39 +0200 |
commit | fa4aab7f84061c7253de6c38162f5b71111f5139 (patch) | |
tree | 80bc6d42211de9d141cfc1e36be3a57f740512fe | |
parent | 1dff18a181b02355cbea5ebcc2c5d0b92ec64d0c (diff) | |
download | gcc-fa4aab7f84061c7253de6c38162f5b71111f5139.zip gcc-fa4aab7f84061c7253de6c38162f5b71111f5139.tar.gz gcc-fa4aab7f84061c7253de6c38162f5b71111f5139.tar.bz2 |
Improve svn-rev to search for pattern at line beginning.
* gcc-git-customization.sh: Search for the pattern
at line beginning only.
-rw-r--r-- | contrib/ChangeLog | 5 | ||||
-rwxr-xr-x | contrib/gcc-git-customization.sh | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 488a32c..ab9254b 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2020-04-03 Martin Liska <mliska@suse.cz> + + * gcc-git-customization.sh: Search for the pattern + at line beginning only. + 2020-01-24 Richard Earnshaw <rearnsha@arm.com> * gcc-git-customization.sh: Use users/<pfx> for the personal remote diff --git a/contrib/gcc-git-customization.sh b/contrib/gcc-git-customization.sh index f3e4831..a932bf8 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 |