Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- file_path=composer.json
- before_commit=$(git rev-parse --verify 5942ce7)
- file_blob=$(git hash-object -w "$file_path")
- git filter-branch \
- --index-filter '
- if x=$(git rev-list -1 "$GIT_COMMIT" --not '"$before_commit"') &&
- test -n "$x"; then
- git update-index --add --cacheinfo 100644 '"$file_blob $file_path"'
- fi
- ' \
- --tag-name-filter cat \
- -- --all
Advertisement