| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | |
| 4 | repo=$(mktempscip-shell system . . mktemp. -d) |
| 5 | cd $repo |
| 6 | |
| 7 | mkdirscip-shell system . . mkdir. "with space" |
| 8 | echoscip-shell system . . echo. "file1 contents" > "with space/file1" |
| 9 | |
| 10 | mkdirscip-shell system . . mkdir. "nospace" |
| 11 | echoscip-shell system . . echo. "file2 contents" > "nospace/file2" |
| 12 | |
| 13 | gitscip-shell system . . git. init |
| 14 | gitscip-shell system . . git. commit --allow-empty -m "Initial commit" |
| 15 | gitscip-shell system . . git. add . |
| 16 | gitscip-shell system . . git. commit -m "Initial commit" |
| 17 | |
| 18 | gitscip-shell system . . git. mv "with space/file1" "with space/file1-renamed" |
| 19 | gitscip-shell system . . git. mv "nospace/file2" "nospace/file2-renamed" |
| 20 | gitscip-shell system . . git. commit -m "Rename" |
| 21 | |
| 22 | gitscip-shell system . . git. show |