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

1 messages from 2017-03-09 to 2017-03-09. Participants: Ramsay Jones.
Thread: https://gitlist.dev/t/45325

## Ramsay Jones, 2017-03-09 01:47

Subject: [PATCH] read-tree: mark a file-local symbol as static
Message-ID: <5a67328d-bbea-4dda-b9bc-32c15d960bcf@ramsayjones.plus.com>
URL: https://gitlist.dev/e/5a67328d-bbea-4dda-b9bc-32c15d960bcf%40ramsayjones.plus.com

```

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---

Hi Stefan,

If you need to re-roll your 'sb/checkout-recurse-submodules' branch,
could you please squash this into the relevant patch (commit 97aadb19f1,
"builtin/read-tree: add --recurse-submodules switch", 06-03-2017).

ATB,
Ramsay Jones

 builtin/read-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builtin/read-tree.c b/builtin/read-tree.c
index 2dc5cc06d..23e212ee8 100644
--- a/builtin/read-tree.c
+++ b/builtin/read-tree.c
@@ -21,7 +21,7 @@
 static int nr_trees;
 static int read_empty;
 static struct tree *trees[MAX_UNPACK_TREES];
-int recurse_submodules = RECURSE_SUBMODULES_DEFAULT;
+static int recurse_submodules = RECURSE_SUBMODULES_DEFAULT;
 
 static int list_tree(unsigned char *sha1)
 {
-- 
2.12.0

```
