#!/usr/bin/env bash
set -x -e
source ./functions.sh
# for (( i=0 ; i < 32; i=i+1 )); do
# echo -n "."
#
# if [ $((i%4)) -eq 0 ]; then
# echo -n "!"
# fi
# done
# echo ""
cd ..
rm -rf vimX-tests
mkdir vimX-tests
if [ -d vim ]
then
cd vim
git pull -a
cd ..
else
git clone https://github.com/vim/vim.git
fi
cp -Rp vim vimX-tests/vimX-data
cd vimX-tests/vimX-data
pijul init .
while IFS=: read -r h m;
do
git checkout -q "$h"
pijul add -r .
pijul record -am"$h:$m"
done < <(git log --pretty=format:"%h:%s" --reverse)
cd ..
pijul clone vimX-data vimX-data2
zero "$(diff -qr vimX-data/src vimX-data2/src | grep -cv "Only in")"