Changes between Version 3 and Version 4 of UsingGitToMaintainGDALWorkflow
- Timestamp:
- Feb 13, 2010, 1:08:43 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsingGitToMaintainGDALWorkflow
v3 v4 10 10 11 11 {{{ 12 git svn init --trunk https://svn.osgeo.org/gdal/trunk/12 $ git svn init --trunk https://svn.osgeo.org/gdal/trunk/ 13 13 }}} 14 14 15 15 The option ''--trunk'' explicitly specifies intention of this operation. 16 16 17 It is also possible to copy complete repository, including trunk, branches and tags modules. Learn about ''--stdlayout'' option dedicated for this purpose. 17 It is also possible to copy complete repository, including trunk, branches and tags modules. Learn about ''--stdlayout'' option dedicated for this purpose. However, note that this initial fetch is a time consuming process. (fetching of SVN trunk takes nearly one hour). 18 18 19 19 Next, fetch complete copy of GDAL trunk: 20 20 21 21 {{{ 22 git svn --authors-file=/path/to/gdal-git-authors.txt fetch22 $ git svn --authors-file=/path/to/gdal-git-authors.txt fetch 23 23 }}} 24 24 25 25 The file ''gdal-git-authors.txt'' (attached) is used by Git to translate names of SVN committers to Git names which uses format "Full name <e-mail>". 26 27 It may be a good idea to compress Git repository in order to save some space. For example, SVN trunk occupies nearly 140 MB of disk space. Git can compress it to about 100 MB. Git provides a dedicated command for this purpose [http://www.kernel.org/pub//software/scm/git-core/docs/git-gc.html git-gc]: 28 29 {{{ 30 $ git gc 31 }}} 26 32 27 33 You can bring your local Git repository up to date against GDAL trunk any time.