threads / patch / 46076

patchsubmodule: mark some file-local symbols as static

Subject: [PATCH] submodule: mark some file-local symbols as static

## tl;dr

One message between May 31, 2017 and May 31, 2017. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Ramsay Jones· May 31, 2017, 13:50 UTC · lore
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Stefan,

If you need to re-roll your 'sb/submodule-blanket-recursive' branch, could you please squash this into the relevant patch (commit 0e5bca302a "Introduce 'submodule.recurse' option for worktree manipulators", 26-05-2017).

Thanks!

ATB, Ramsay Jones

 builtin/read-tree.c | 2 +-
 builtin/reset.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Show changes to 2 files +2 −2

builtin/read-tree.c, builtin/reset.c

diff --git a/builtin/read-tree.c b/builtin/read-tree.c
index ad317c736..5bfd4c9f7 100644
--- a/builtin/read-tree.c
+++ b/builtin/read-tree.c
@@ -98,7 +98,7 @@ static int debug_merge(const struct cache_entry * const *stages,
 	return 0;
 }
 
-int git_read_tree_config(const char *var, const char *value, void *cb)
+static int git_read_tree_config(const char *var, const char *value, void *cb)
 {
 	if (!strcmp(var, "submodule.recurse"))
 		return git_default_submodule_config(var, value, cb);
diff --git a/builtin/reset.c b/builtin/reset.c
index 48bc58cc7..45001e520 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -265,7 +265,7 @@ static int reset_refs(const char *rev, const struct object_id *oid)
 	return update_ref_status;
 }
 
-int git_reset_config(const char *var, const char *value, void *cb)
+static int git_reset_config(const char *var, const char *value, void *cb)
 {
 	if (!strcmp(var, "submodule.recurse"))
 		return git_default_submodule_config(var, value, cb);
-- 
2.13.0

← back to recent threads