On 13/01/2020 13:44, Richard Earnshaw (lists) wrote: > On 10/01/2020 14:26, Richard Earnshaw (lists) wrote: >> On 10/01/2020 13:23, Richard Earnshaw (lists) wrote: >>> This patch is intended to help with folks setting up a git work >>> environment for use with GCC following the transition to git. It >>> currently does a couple of things. >>> >>> 1) Add an alias 'svn-rev' to git so that you can look up a legacy >>> commit by its svn revision number. This enables you to type >>> git svn-rev 1234 >>> and git will show the commit log entry relating to SVN r1234. >>> >>> 2) Sets up tracking information for the user's private name area in >>> the git repo. It tries to figure out some sensible answers to the >>> data it needs, but allows the user to override the values. It then >>> creates the fetch and push entries that are needed for tracking the >>> extra refs. This implements one part of the recommendations that I've >>> proposed in svnwrite.html for dealing with private branches. >>> >>> It should be possible to run the script more than once and for it to >>> DTRT. If you change your answers the configuration should be >>> correctly updated. >>> >>> 2020-01-10 Richard Earnshaw <rearn...@arm.com> >>> >>> * gcc-git-customization: New file. >>> >> >> Updated to add better support for diff-ing .md files. >> >> R. > > A couple more tweaks to this file and I've now checked it in. > > 1) Added the ability to select the prefix for the personal namespace. > This will be cached. If you change it, then the push operations will be > updated (but any local branches you will have to rename if you want them > to continue working afterwards). > 2) Removed the + from the added push spec. >
And one more tweak I forgot to mention: 3) an optional 'r' can now be used in front of an svn revision number in 'git svn-rev'. > R. >