diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-12 15:54:59 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-12 15:54:59 +1000 |
commit | 98c22a36fdaf8806f8fafe8f1e23e53f8e97658d (patch) | |
tree | 4e04dfe9889df3e06ebb43daa2810e557c552821 /test/repos/lots_of_commits.sh | |
parent | 7bfd8155c2482afd3c09ac7991e8f8f7f0d0338b (diff) |
rearrange test repo generators
Diffstat (limited to 'test/repos/lots_of_commits.sh')
-rwxr-xr-x | test/repos/lots_of_commits.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/repos/lots_of_commits.sh b/test/repos/lots_of_commits.sh new file mode 100755 index 000000000..7c271f751 --- /dev/null +++ b/test/repos/lots_of_commits.sh @@ -0,0 +1,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 |