threads / patch / 49076

patchdefault to builtin rebase

Subject: [GSoC] [PATCH 0/1] default to builtin rebase

## tl;dr

2 messages between Aug 8, 2018 and Aug 8, 2018. Diffs are folded; open one to read it.

replies: 1people: 1as markdown or json

Pratik Karki· Aug 8, 2018, 15:53 UTC · lore

Since, all the conversion of shell script version of `git rebase` is done as can be seen from the previous patch series, now we can default to the builtin one. The builtin rebase can now handle every task done by the original shell script `git rebase`. So, in this patch series, we turn the builtin rebase `on` so that the rebase operations can be handled it by it.

This patch series is the continuation of (https://public-inbox.org/git/20180808153635.19944-1-predatoramigo@gmail.com/).

This is the sixth and final patch series for a builtin "git rebase".

If you like to view the development branch, you can view (https://github.com/git/git/pull/505), where I have kept my commits up to date and leveraged Travis(there is sporadic failures in t5520 for macos gcc and isn't due to my patches) for extra testing other than my system.

These patch series are built on top of each other, i.e. they depend on this order.

Pratik Karki (1):
  rebase: default to using the builtin rebase
 builtin/rebase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-- 
2.18.0
Pratik Karki· Aug 8, 2018, 15:53 UTC · re: Pratik Karki · lore

[PATCH 1/1] rebase: default to using the builtin rebase

Now that the builtin rebase is feature-complete, we should use it by default. Let's keep the legacy scripted version around for the time being; Once the builtin rebase is well-tested enough, we can remove `git-legacy-rebase.sh`.

Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
---
 builtin/rebase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to builtin/rebase.c +1 −1
diff --git a/builtin/rebase.c b/builtin/rebase.c
index 4e69458161..c8d632b6f4 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 0;
+		return 1;
 	}
 
 	strbuf_trim(&out);
-- 
2.18.0

← back to recent threads