File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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+
10541075test_expect_success ' show help from add--helper' '
10551076 git reset --hard &&
10561077 cat >expect <<-EOF &&
You can’t perform that action at this time.
0 commit comments