Skip to content

Commit 50b06c8

Browse files
dschojamill
authored andcommitted
stash/rebase: default to the non-builtin versions
The upcoming Git for Windows v2.19.0 wants to ship with the builtin versions of stash, rebase and rebase -i. The reason: these are just *so much faster*: t3400 and t3404 run about 60-70 percent faster, and t3903 even more than 80% faster. However, these are still all pretty fresh, still being reviewed and iterated on the Git mailing list. So let's try to give users a way to test these (or to boldly use them for their mission-critical tasks, as this here developer plans on doing), but stay with the safe option by default: use the scripted versions (which might be slow, but they are well tested). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f237751 commit 50b06c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/rebase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static int use_builtin_rebase(void)
5454
cp.git_cmd = 1;
5555
if (capture_command(&cp, &out, 6)) {
5656
strbuf_release(&out);
57-
return 1;
57+
return 0;
5858
}
5959

6060
strbuf_trim(&out);

builtin/stash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ static int use_builtin_stash(void)
14881488
cp.git_cmd = 1;
14891489
if (capture_command(&cp, &out, 6)) {
14901490
strbuf_release(&out);
1491-
return 1;
1491+
return 0;
14921492
}
14931493

14941494
strbuf_trim(&out);

0 commit comments

Comments
 (0)