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

git init
git config user.email "test@example.com"
git config user.name "Lazygit Tester"


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