git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] rebase: fix a sparse 'plain integer as NULL pointer' warning

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Aug 11, 2018, 21:52 UTC
Message-ID
<d5d0f6c3-748b-b83f-f9d4-2812f4509313@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Pratik,

If you need to re-roll your 'pk/rebase-in-c-4-opts' branch, could you please squash this into the relevant patch (commit b0721e7b48, "builtin rebase: support `-C` and `--whitespace=<type>`", 2018-08-08).

Thanks!

ATB, Ramsay Jones

 builtin/rebase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/rebase.c b/builtin/rebase.c
index 42f5884ce9..fa7c5582f8 100644
--- a/builtin/rebase.c
+++ b/builtin/rebase.c
@@ -776,7 +776,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
 			   N_("gpg-sign?"), N_("GPG-sign commits")),
 		OPT_STRING_LIST(0, "whitespace", &whitespace,
 				N_("whitespace"), N_("passed to 'git apply'")),
-		OPT_SET_INT('C', 0, &opt_c, N_("passed to 'git apply'"),
+		OPT_SET_INT('C', NULL, &opt_c, N_("passed to 'git apply'"),
 			    REBASE_AM),
 		OPT_BOOL(0, "autostash", &options.autostash,
 			 N_("automatically stash/stash pop before and after")),
-- 
2.18.0
Message 1 of 1 in “rebase: fix a sparse 'plain integer as NULL pointer' warning”
  1. rebase: fix a sparse 'plain integer as NULL pointer' warningRamsay Jones, Aug 11, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.