F3AD6JXXPNTLIUXPX7CUPZCD53SLZFKCSSNVQDW6Q32BUIT2RNWAC
I3EH5ASIV5QRCO2WGVEK6RAQUPQZBENXCO7KKG5E22A3XOOQDH5QC
YZWWU6JGAL2MEY5L7HJTXJVWZAREMZ43AHOZPWDMFLV5ECBTH77QC
SQWPGFUETQPYAW2VZRIDZWGXQN4GCMSPHYQ4PLWMESLDJTPACGXAC
ARAFRHKULUG66WDRPKJB4GL5WCMP4LD2TRTYO3RA2T3XZDRLXEUQC
73PQOETUBJ2H5A6B3YW3KJ5C2TGOBUXXXSIVWPHCFVC5J3PNQGMQC
NYFLNSVVETUQ6ODIEMFKWUXPLWM2XQNSKLO5J7ZHCHP6L5JQLSEQC
UXLO2KVDT7D5HJSSRWQHWAY2M6K57HWBKL45TDIXYJODEK57AB5AC
QUG3TDX353EQPQKCFTSNC4PMO2DP7QOJ3MEGFTKLZW6D7M6FLPCAC
5JGZ5VE72HPFKTMGJU5U67YU3MKICVD5YGUKP2XJVBCEZ7SKBCUAC
5LKTNB6ODFPX45VJBT5H34WZFJBVWWYSCS2HRMKKJPPO3M2M75NAC
pijul record
(Here `y` means yes, `n` means no, `k` means undo and remake last decision, `a` means include this and all remaining patches, `d` means include neither this patch nor the remaining patches and `i` means ignore this file locally (i.e. it is added to .pijul/local/ignore).)
### Generating random numbers
pijul add Sample.java
pijul record
private static int random() {
return java.util.concurrent.ThreadLocalRandom.current().nextInt(1, 7);
}
pijul add Sample.java
pijul record
pijul unrecord // unrecord all patches and squash them into one
(Here `y` means yes, `n` means no, `k` means undo and remake last decision, `a` means include this and all remaining patches, `d` means include neither this patch nor the remaining patches and `i` means ignore this file locally (i.e. it is added to .pijul/local/ignore).)
### Reordering patches
Zie `misc/MyRandom.java` voor als je de details vergeet.
pijul init beers-and-movies
cd beers-and-movies
touch README.md
pijul add README.md
pijul record -m "Initial patch"
pijul fork next-week
pijul branches
pijul checkout master
vi movies.txt
pijul record -m "Watched a movie"
vi beers.txt
pijul add beers.txt
pijul record -m "Drank a beer"
vi movies.txt
pijul add movies.txt
pijul record -m "Watched another movie"
pijul log
pijul checkout next-week
pijul apply <hash> (beer)
ls
pijul apply <hash> (another movie)
pijul apply <hash> (movie)
pijul apply <hash> (another movie)