We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc355b5 commit f0b9031Copy full SHA for f0b9031
t/t3701-add-interactive.sh
@@ -639,4 +639,25 @@ test_expect_success 'add -p patch editing works with pathological context lines'
639
test_cmp expected-2 actual
640
'
641
642
+test_expect_success EXPENSIVE 'add -i with a lot of files' '
643
+ git reset --hard &&
644
+ x160=0123456789012345678901234567890123456789 &&
645
+ x160=$x160$x160$x160$x160 &&
646
+ y= &&
647
+ i=0 &&
648
+ while test $i -le 200
649
+ do
650
+ name=$(printf "%s%03d" $x160 $i) &&
651
+ echo $name >$name &&
652
+ git add -N $name &&
653
+ y="${y}y$LF" &&
654
+ i=$(($i+1)) ||
655
+ break
656
+ done &&
657
+ echo "$y" | git add -p -- . &&
658
+ git diff --cached >staged &&
659
+ test_line_count = 1407 staged &&
660
+ git reset --hard
661
+'
662
+
663
test_done
0 commit comments