| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # gitwash - accept a stream in fast order and canonicalize it. |
| 4 | # |
| 5 | # FIXME: stop deleting author and committer lines when we fix timezone screwage. |
| 6 | # |
| 7 | rmscip-shell system . . rm. -fr /tmp/gitwash* |
| 8 | mkdirscip-shell system . . mkdir. /tmp/gitwash$$ |
| 9 | cd /tmp/gitwash$$ >/dev/nullscip-shell filesystem . . `/dev/null`. || ( echoscip-shell system . . echo. "$0: cd failed"; exit 1 ) |
| 10 | |
| 11 | gitscip-shell system . . git. init --quiet |
| 12 | gitscip-shell system . . git. fast-import --quiet |
| 13 | gitscip-shell system . . git. fast-export --all | sedscip-shell system . . sed. -e '/author/dscip-shell filesystem . . `/author/d`.' -e '/committer/dscip-shell filesystem . . `/committer/d`.' |
| 14 | rmscip-shell system . . rm. -fr /tmp/gitwash$$ |
| 15 | |
| 16 | #end |