Skip to content

Commit 7a30609

Browse files
committed
t3701: verify that we can add *lots* of files interactively
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8829704 commit 7a30609

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

t/t3701-add-interactive.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,27 @@ test_expect_success 'checkout -p patch editing of added file' '
10511051
)
10521052
'
10531053

1054+
test_expect_success EXPENSIVE 'add -i with a lot of files' '
1055+
git reset --hard &&
1056+
x160=0123456789012345678901234567890123456789 &&
1057+
x160=$x160$x160$x160$x160 &&
1058+
y= &&
1059+
i=0 &&
1060+
while test $i -le 200
1061+
do
1062+
name=$(printf "%s%03d" $x160 $i) &&
1063+
echo $name >$name &&
1064+
git add -N $name &&
1065+
y="${y}y$LF" &&
1066+
i=$(($i+1)) ||
1067+
exit 1
1068+
done &&
1069+
echo "$y" | git add -p -- . &&
1070+
git diff --cached >staged &&
1071+
test_line_count = 1407 staged &&
1072+
git reset --hard
1073+
'
1074+
10541075
test_expect_success 'show help from add--helper' '
10551076
git reset --hard &&
10561077
cat >expect <<-EOF &&

0 commit comments

Comments
 (0)