LUHFIFYE6DY6ENTXYAPN2VV5WJY5ZG576UI2LPCNVRU5LCOZZHCQC
#!/bin/bash
PIJUL_CONFLICTS="${PWD}/target/debug/pijul-conflicts"
REPO=$(mktemp -d)
pijul init "${REPO}"
pushd "${REPO}"
cat <<EOF > file.txt
A
B
C
EOF
pijul add file.txt
pijul record --all --message "initial change"
pijul fork alice
pijul channel switch alice
sed -i -e 's/B/X/g' file.txt
pijul record --all --message "alice wuz here"
pijul channel switch main
sed -i -e 's/B/Y/g' file.txt
pijul record --all --message "bobdor"
pijul apply "$(pijul log --channel alice --hash-only --limit 1)"
"${PIJUL_CONFLICTS}"
popd