Changes between Version 2 and Version 3 of Ticket #16944
- Timestamp:
- 2018-11-04T22:36:24+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16944 – Description
v2 v3 75 75 76 76 # Apache Commons Compress 77 # compress is already on git, need first to somehow mix with other repositories (using commit date, not author date) 78 # as commits sorted by date do not constitue the history. 79 # first - create subdirectory where all commons-compress files will go 77 # Linearlize commons_compress history 80 78 git branch -f svn_commons_compress_rewrite remotes/commons_compress/master 81 git filter-branch -f --index-filter " 82 git ls-files -s | sed -e \$'s#\t#\tcommons-compress/#' | 83 GIT_INDEX_FILE=\$GIT_INDEX_FILE.new git update-index --index-info && 84 if [ -f \$GIT_INDEX_FILE.new ] ; then mv \$GIT_INDEX_FILE.new \$GIT_INDEX_FILE ; fi" \ 79 git filter-branch -f --parent-filter 'cut -f 2,3 -d " "' svn_commons_compress_rewrite 80 # Extract externals 81 git filter-branch -f --tree-filter ' 82 if [ -d src/main/java ] ; then 83 git mv src src.new && 84 find . -depth 1 | 85 grep -v ^./src.new | grep -v ^./.git$ | 86 xargs -r git rm -fr && 87 git mv src.new/main/java src && 88 git rm -rf --ignore-unmatch src.new 89 else 90 find . -depth 1 | 91 grep -v ^./.git$ | 92 xargs -r git rm -fr 93 fi' \ 85 94 svn_commons_compress_rewrite 95 86 96 87 97 # Apache Commons JCS … … 117 127 fi' \ 118 128 svn_commons_loggingtrunk_rewrite 119 120 ###121 # Linearlize commons_compress history122 ###123 124 git branch -f svn_commons_compress_clean svn_commons_compress_rewrite125 git filter-branch -f --parent-filter 'cut -f 2,3 -d " "' svn_commons_compress_clean126 129 127 130 ### … … 171 174 git rebase --keep-empty -i $(git log --reverse --oneline --no-abbrev-commit | head -n 1 | cut -d ' ' -f 1) 172 175 173 # fix Apache Commons Compress paths174 git filter-branch -f --tree-filter '175 if [ -d commons-compress/src/main/java ] ; then176 mkdir -p src/java/org/apache/commons/177 git mv commons-compress/src/main/java/org/apache/commons/compress src/java/org/apache/commons/ &&178 find commons-compress -depth 1 |179 xargs -r git rm -fr180 else181 find commons-compress -depth 1 |182 xargs -r git rm -fr183 fi' \184 master185 186 176 # helpful one-liner: git diff --name-only --diff-filter=U | xargs git checkout ... 187 177


