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

[PATCH] worktree: mark a file-local symbol with static

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Dec 2, 2016, 20:55 UTC
Message-ID
<0be15cd5-4ecb-3d87-93ee-d34d2be2d4c6@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Stefan,

If you need to re-roll your 'sb/submodule-intern-gitdir' branch, could you please squash something similar to this into the relevant patch (commit 2529715dc, "worktree: get worktrees from submodules", 01-12-2016).

[This is based on pu; ie. on top of merge 86c7f863a, where Junio as added the 'flags' parameter.]

Thanks!

ATB, Ramsay Jones

 worktree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/worktree.c b/worktree.c
index d5c71095e..ba393fe5c 100644
--- a/worktree.c
+++ b/worktree.c
@@ -168,7 +168,7 @@ static int compare_worktree(const void *a_, const void *b_)
 	return fspathcmp((*a)->path, (*b)->path);
 }
 
-struct worktree **get_worktrees_internal(const char *git_common_dir, unsigned flags)
+static struct worktree **get_worktrees_internal(const char *git_common_dir, unsigned flags)
 {
 	struct worktree **list = NULL;
 	struct strbuf path = STRBUF_INIT;
-- 
2.11.0
Next: Stefan Beller
Message 1 of 2 in “worktree: mark a file-local symbol with static”
  1. worktree: mark a file-local symbol with staticRamsay Jones, Dec 2, 2016
  2. Stefan BellerDec 2, 2016

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.