summaryrefslogtreecommitdiffstats
path: root/test/repos/lots_of_commits.sh
blob: 7c271f751b5d3732ebcb7440b86a1b79e6b96fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -ex; rm -rf repo; mkdir repo; cd repo

git init

i=2
end=100
while [ $i -le $end ]; do
    echo "file${i}" > file${i}
    git add file${i}
    git commit -m file${i}

    i=$(($i+1))
done

echo "unstaged change" > file100