Git fork
at reftables-rust 18 lines 608 B view raw
12 (while test $i -le $blobcount 23 do 34 printf "Generating blob $i/$blobcount\r" >&2 && 45 printf "blob\nmark :$i\ndata $blobsize\n" && 56 #test-tool genrandom $i $blobsize && 67 printf "%-${blobsize}s" $i && 78 echo "M 100644 :$i $i" >> commit && 89 i=$(($i+1)) || 910 echo $? > exit-status 1011 done && 1112 echo "commit refs/heads/main" && 1213 echo "author A U Thor <author@email.com> 123456789 +0000" && 1314 echo "committer C O Mitter <committer@email.com> 123456789 +0000" && 1415 echo "data 5" && 1516 echo ">2gb" && 1617 cat commit) | 1718 git fast-import --big-file-threshold=2 && 1819 test ! -f exit-status