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

2 messages from 2019-03-12 to 2019-03-12. Participants: Ramsay Jones, Eric Sunshine.
Thread: https://gitlist.dev/t/50714

## Ramsay Jones, 2019-03-12 02:53

Subject: [PATCH] sequencer: mark a file-local symbol as static
Message-ID: <d5d47b6b-25d9-a649-e13d-76e98e07ed51@ramsayjones.plus.com>
URL: https://gitlist.dev/e/d5d47b6b-25d9-a649-e13d-76e98e07ed51%40ramsayjones.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

```

## Eric Sunshine, 2019-03-12 02:58

Subject: Re: [PATCH] sequencer: mark a file-local symbol as static
Message-ID: <CAPig+cTqdeVXyYZarGOb+AiLOERO0HpK+ykYgrAddyFzPG0+Mg@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcTqdeVXyYZarGOb%2BAiLOERO0HpK%2BykYgrAddyFzPG0%2BMg%40mail.gmail.com
In-Reply-To: <d5d47b6b-25d9-a649-e13d-76e98e07ed51@ramsayjones.plus.com>

```
On Mon, Mar 11, 2019 at 10:53 PM Ramsay Jones
<ramsay@ramsayjones.plus.com> wrote:
> 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)).
>
>  /* 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[] = {

This was also suggested during review[1].

[1]: http://public-inbox.org/git/CAPig+cQGvmi-237s1Leb1NpOMA0683PkCG4HBCKn_+x5YDHnCQ@mail.gmail.com/

```
