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

[PATCH] sequencer: mark a file-local symbol as static

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Mar 12, 2019, 02:53 UTC
Message-ID
<d5d47b6b-25d9-a649-e13d-76e98e07ed51@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Denton,

If you need to re-roll your 'dl/merge-cleanup-scissors-fix' branch, could you please squash this into the relevant patch (commit 9bcdf520cb ("sequencer.c: define get_config_from_cleanup", 2019-03-10)).

I note also, that the get_config_from_cleanup() function is not called outside of sequencer.c, so that this function could also be marked static (and remove the extern declaration from the header file) if there are no plans for future callers.

Thanks!

ATB, Ramsay Jones

 sequencer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sequencer.c b/sequencer.c
index 19d1279fa8..833017eb2d 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -166,7 +166,7 @@ struct cleanup_config_mapping {
 };
 
 /* note that we assume that cleanup_config_mapping[0] contains the default settings */
-struct cleanup_config_mapping cleanup_config_mappings[] = {
+static struct cleanup_config_mapping cleanup_config_mappings[] = {
 	{ "default", COMMIT_MSG_CLEANUP_ALL, COMMIT_MSG_CLEANUP_SPACE },
 	{ "verbatim", COMMIT_MSG_CLEANUP_NONE, COMMIT_MSG_CLEANUP_NONE },
 	{ "whitespace", COMMIT_MSG_CLEANUP_SPACE, COMMIT_MSG_CLEANUP_SPACE },
-- 
2.21.0
Next: Eric Sunshine
Message 1 of 2 in “sequencer: mark a file-local symbol as static”
  1. sequencer: mark a file-local symbol as staticRamsay Jones, Mar 12, 2019
  2. Eric SunshineMar 12, 2019

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.