We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8829704 commit 7a30609Copy full SHA for 7a30609
t/t3701-add-interactive.sh
@@ -1051,6 +1051,27 @@ test_expect_success 'checkout -p patch editing of added file' '
1051
)
1052
'
1053
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
+
1075
test_expect_success 'show help from add--helper' '
1076
git reset --hard &&
1077
cat >expect <<-EOF &&
0 commit comments