github.com/andrewrech/lazygit@v0.8.1/test/repos/lots_of_commits.sh (about)

     1  #!/bin/bash
     2  set -ex; rm -rf repo; mkdir repo; cd repo
     3  
     4  git init
     5  git config user.email "test@example.com"
     6  git config user.name "Lazygit Tester"
     7  
     8  
     9  i=2
    10  end=100
    11  while [ $i -le $end ]; do
    12      echo "file${i}" > file${i}
    13      git add file${i}
    14      git commit -m file${i}
    15  
    16      i=$(($i+1))
    17  done
    18  
    19  echo "unstaged change" > file100