1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh git filter-branch -f --subdirectory-filter trunk git filter-branch -f --tree-filter 'makepkg --printsrcinfo > .SRCINFO || rm .SRCINFO' --commit-filter ' if [ -e .SRCINFO ] then git commit-tree "$@" else shift while [ -n "$1" ] do shift map "$1" shift done fi'