Thread (155 messages) 155 messages, 8 authors, 2018-09-27

Re: [GSoC][PATCH v6 18/20] rebase--interactive2: rewrite the submodes of interactive rebase in C

From: Johannes Schindelin <hidden>
Date: 2018-08-22 21:14:58
Subsystem: the rest · Maintainer: Linus Torvalds

Hi Alban,

thank you for your tireless work on this!

One thing that needs to be fixed, though:

On Fri, 10 Aug 2018, Alban Gruin wrote:
quoted hunk ↗ jump to hunk
+run_interactive () {
+	GIT_CHERRY_PICK_HELP="$resolvemsg"
+	export GIT_CHERRY_PICK_HELP
+
+	test -n "$keep_empty" && keep_empty="--keep-empty"
+	test -n "$rebase_merges" && rebase_merges="--rebase-merges"
+	test -n "$rebase_cousins" && rebase_cousins="--rebase-cousins"
+	test -n "$autosquash" && autosquash="--autosquash"
+	test -n "$verbose" && verbose="--verbose"
+	test -n "$force_rebase" && force_rebase="--no-ff"
+	test -n "$restrict_revisions" && \
+		restrict_revisions="--restrict-revisions=^$restrict_revisions"
I made this same mistake over and over again, myself. For some reason,
John Keeping decided to use the singular form "revision" in 1e0dacdbdb75
(rebase: omit patch-identical commits with --fork-point, 2014-07-16), not
the plural.

So you will need to squash this in:

-- snipsnap --
diff --git a/git-legacy-rebase.sh b/git-legacy-rebase.sh
index fb0395af5b1..7600765f541 100755
--- a/git-legacy-rebase.sh
+++ b/git-legacy-rebase.sh
@@ -145,8 +145,8 @@ run_interactive () {
 	test -n "$autosquash" && autosquash="--autosquash"
 	test -n "$verbose" && verbose="--verbose"
 	test -n "$force_rebase" && force_rebase="--no-ff"
-	test -n "$restrict_revisions" && \
-		restrict_revisions="--restrict-revisions=^$restrict_revisions"
+	test -n "$restrict_revision" && \
+		restrict_revision="--restrict-revision=^$restrict_revision"
 	test -n "$upstream" && upstream="--upstream=$upstream"
 	test -n "$onto" && onto="--onto=$onto"
 	test -n "$squash_onto" && squash_onto="--squash-onto=$squash_onto"
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help