[GRASS-SVN] r73304 - grass-addons/tools/svn2git

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 9 03:14:23 PDT 2018


Author: martinl
Date: 2018-09-09 03:14:23 -0700 (Sun, 09 Sep 2018)
New Revision: 73304

Modified:
   grass-addons/tools/svn2git/readme.txt
Log:
svn2git: readme cosmetics

Modified: grass-addons/tools/svn2git/readme.txt
===================================================================
--- grass-addons/tools/svn2git/readme.txt	2018-09-09 09:23:25 UTC (rev 73303)
+++ grass-addons/tools/svn2git/readme.txt	2018-09-09 10:14:23 UTC (rev 73304)
@@ -6,11 +6,14 @@
 * https://trac.osgeo.org/gdal/wiki/rfc71_github_migration
 * https://trac.osgeo.org/gdal/wiki/UsingGitToMaintainGDALWorkflow
 
-1. Generate authors file
+Recipe how to build authors file from contributors.csv & contributors_extra.csv files:
 
 $ echo "(no author) = unknown <unknown at unknown>" > authors.txt
 $ svn log --xml --quiet | grep author | sort -u | perl -pe 's/.*>(.*?)<.*/$1 = /' >> authors.txt
+$ python3 svn-contributors-to-git.py
 
-2. Update authors file based on contributors.csv and contributors_extra.csv files
+1. Initialize git repo (preferably use AUTHORS.txt from SVN)
 
-$ python3 svn-contributors-to-git.py
+$ mkdir grass-gis-git ; cd grass-gis-git
+$ git svn init --stdlayout https://svn.osgeo.org/grass/grass
+$ git svn --authors-file=path/to/grass_addons/tools/svn2git/AUTHORS.txt



More information about the grass-commit mailing list