Improve svn-rev to search for pattern at line beginning.

	* gcc-git-customization.sh: Search for the pattern
	at line beginning only.
parent 1dff18a1
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> 2020-01-24 Richard Earnshaw <rearnsha@arm.com>
* gcc-git-customization.sh: Use users/<pfx> for the personal remote * gcc-git-customization.sh: Use users/<pfx> for the personal remote
......
...@@ -18,7 +18,7 @@ ask () { ...@@ -18,7 +18,7 @@ ask () {
} }
# Add a git command to find the git commit equivalent to legacy SVN revision NNN # 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 # Add git commands to convert git commit to monotonically increasing revision number
# and vice versa # and vice versa
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment