From 3ff59a431cffe37a805ac61c0245ade180da673b Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 24 Aug 2018 17:51:56 +0200 Subject: [PATCH] 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 --- builtin/rebase.c | 2 +- builtin/stash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/rebase.c b/builtin/rebase.c index 029d04e9fc..ea556371e9 100644 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@ -54,7 +54,7 @@ static int use_builtin_rebase(void) cp.git_cmd = 1; if (capture_command(&cp, &out, 6)) { strbuf_release(&out); - return 1; + return 0; } strbuf_trim(&out); diff --git a/builtin/stash.c b/builtin/stash.c index dadf79c19a..5657e0de4d 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -1520,7 +1520,7 @@ static int use_builtin_stash(void) cp.git_cmd = 1; if (capture_command(&cp, &out, 6)) { strbuf_release(&out); - return 1; + return 0; } strbuf_trim(&out);