-
-
Save vchuravy/81de73d34ed2b24de3123f50bb3c5bbd to your computer and use it in GitHub Desktop.
Extracting sparse array files...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/questions/5998987/splitting-a-set-of-files-within-a-git-repo-into-their-own-repository-preserving | |
# Takes some while to run 1000s | |
git filter-branch \ | |
--prune-empty \ | |
--index-filter ' | |
git ls-tree -z -r --name-only --full-tree $GIT_COMMIT \ | |
| grep -z -v "^base/sparse" \ | |
| grep -z -v "^test/sparse.jl" \ | |
| grep -z -v "^doc/manual/linear-algebra.rst" \ | |
| grep -z -v "^doc/manual/arrays.rst" \ | |
| xargs -0 -r git rm --cached -r | |
' \ | |
-- \ | |
master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cleanup afterwards: