Skip to contentSkip to conversation

fixup! builtin/rebase: support running "git rebase <upstream>"

PATCH In review Beat Bolli 2 participants 2 messages Jul 21, 2018 – Jul 22, 2018

lore
Share & tools
lore

Beat Bolli

author
#0 lore raw

PATCH 1/1 fixup! builtin/rebase: support running "git rebase <upstream>"

The macro GIT_PATH_FUNC expands to a function definition that ends with a closing brace. The extra semicolon produces a warning when compiling with -pedantic.

---

Junio, this applies on top of pk/rebase-in-c.

Thanks, Beat

 builtin/rebase.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/rebase.c +2 -2
index e38ea80874..6aaae2436f 100644
@@ -14,8 +14,8 @@
 #include "refs.h"
 #include "quote.h"
 
-static GIT_PATH_FUNC(apply_dir, "rebase-apply");
-static GIT_PATH_FUNC(merge_dir, "rebase-merge");
+static GIT_PATH_FUNC(apply_dir, "rebase-apply")
+static GIT_PATH_FUNC(merge_dir, "rebase-merge")
 
 enum rebase_type {
 	REBASE_AM,
Signature · 1 line
2.18.0.203.gfac676dfb9
#1 lore raw

Hi,

Quoted 20 lines · Beat Bolli

The macro GIT_PATH_FUNC expands to a function definition that ends with a closing brace. The extra semicolon produces a warning when compiling with -pedantic.

---

Junio, this applies on top of pk/rebase-in-c.

Thanks, Beat

 builtin/rebase.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/rebase.c +0 -0
index e38ea80874..6aaae2436f 100644

builtin/rebase.c line 19

Quoted 8 lines
builtin/rebase.c +2 -2
@@ -14,8 +14,8 @@
 #include "refs.h"
 #include "quote.h"
 
-static GIT_PATH_FUNC(apply_dir, "rebase-apply");
-static GIT_PATH_FUNC(merge_dir, "rebase-merge");
+static GIT_PATH_FUNC(apply_dir, "rebase-apply")
+static GIT_PATH_FUNC(merge_dir, "rebase-merge")
 

First of all, I apologize for not replying earlier to your review. I have already fixed this macro in my local repository.

The new iteration of my patches was being held due to fixup of detach_head_to() and I will soon submit a new iteration of patch within a day or two.
Thank you for pointing this out.

Cheers,
Pratik Karki