Subject: [PATCH] dir: mark add_untracked_ident() as a file local symbol

From: Ramsay Jones <[email-masked]>
Date: Wed, 16 Dec 2015 16:06:52 +0000

Signed-off-by: Ramsay Jones <[email-masked]>
---

Hi Christian,

If you need to re-roll your 'cc/untracked' branch, could you
please squash the relevant parts of this into your patches.

Thanks!

Also, you may what to consider removing the emulation of uname()
on MinGW, since this is no longer required after your series.

ATB,
Ramsay Jones

 dir.c | 2 +-
 dir.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/dir.c b/dir.c
index 94fba2a..be27afa 100644
--- a/dir.c
+++ b/dir.c
@@ -1908,7 +1908,7 @@ static int treat_leading_path(struct dir_struct *dir,
  * We used to save the location of the work tree and the kernel version,
  * but it was not a good idea, so we now just save an empty string.
  */
-void add_untracked_ident(struct untracked_cache *uc)
+static void add_untracked_ident(struct untracked_cache *uc)
 {
 	strbuf_addstr(&uc->ident, "");
 	/* this strbuf contains a list of strings, save NUL too */
diff --git a/dir.h b/dir.h
index 1935b76..531c99a 100644
--- a/dir.h
+++ b/dir.h
@@ -307,7 +307,6 @@ void untracked_cache_add_to_index(struct index_state *, const char *);
 void free_untracked_cache(struct untracked_cache *);
 struct untracked_cache *read_untracked_extension(const void *data, unsigned long sz);
 void write_untracked_extension(struct strbuf *out, struct untracked_cache *untracked);
-void add_untracked_ident(struct untracked_cache *);
 void add_untracked_cache(void);
 void remove_untracked_cache(void);
 #endif
-- 
2.6.0