| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | |
| 4 | repo=$(mktempscip-shell system . . mktemp. -d) |
| 5 | cd $repo |
| 6 | |
| 7 | gitscip-shell system . . git. init |
| 8 | gitscip-shell system . . git. commit --allow-empty -m "Initial commit" |
| 9 | |
| 10 | echoscip-shell system . . echo. "did_emsg = FALSE;" > file.R |
| 11 | |
| 12 | gitscip-shell system . . git. add file.R |
| 13 | gitscip-shell system . . git. commit -m "Base commit" |
| 14 | |
| 15 | echoscip-shell system . . echo. "did_emsg == FALSE;" > file.R |
| 16 | |
| 17 | gitscip-shell system . . git. add file.R |
| 18 | gitscip-shell system . . git. commit -m "Short change" |
| 19 | |
| 20 | gitscip-shell system . . git. revert --no-edit HEAD |
| 21 | |
| 22 | echoscip-shell system . . echo. "did_emsg = TRUE;" > file.R |
| 23 | gitscip-shell system . . git. add file.R |
| 24 | gitscip-shell system . . git. commit -m "Long change" |
| 25 | |
| 26 | gitscip-shell system . . git. log --patch |