#!/usr/bin/env bash
set -x -e
source ./functions.sh
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 .
for G in $(git log --pretty=format:%h --reverse); do
git checkout -q "$G"
if [ -d src ]
then
pijul add -r src
pijul record --timestamp=123456789 -am"$G" 1> /dev/null
fi
done
git checkout master
cd ..
pijul clone vimX-data vimX-data2
cd vimX-data2
pijul debug
cd ..
zero "$(diff -qr vimX-data/src vimX-data2/src | grep -cv "Only in")"