#!/bin/bash
# Setup test repo with many files for cursor navigation tests

REPO=/tmp/lazygitclj-e2e-cursor
rm -rf "$REPO"
mkdir -p "$REPO"
cd "$REPO"

git init -b main
git config user.email 'test@test.com'
git config user.name 'Test'

# Create 20 files
for i in $(seq 1 20); do
    echo "content $i" > "file$i.txt"
done

git add .
git commit -m 'Initial'

# Modify all files to create unstaged changes
for i in $(seq 1 20); do
    echo "modified $i" >> "file$i.txt"
done

echo "Cursor test repo created at $REPO"
