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

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

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jan 1, 2017, 17:10 UTC
Message-ID
<a1a44640-ff6c-2294-72ac-46322eff8505@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Christian,

If you need to re-roll your 'cc/split-index-config' branch, could you please squash this into the relevant patch (commit 8a7e3ef9a6, "read-cache: touch shared index files when used", 26-12-2016).

Thanks!

ATB, Ramsay Jones

 read-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/read-cache.c b/read-cache.c
index 119701bf0..17b9f2461 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1682,7 +1682,7 @@ int do_read_index(struct index_state *istate, const char *path, int must_exist)
  * for some time. It's ok to fail to update the mtime if we are on a
  * read only file system.
  */
-void freshen_shared_index(char *base_sha1_hex)
+static void freshen_shared_index(char *base_sha1_hex)
 {
 	const char *shared_index = git_path("sharedindex.%s", base_sha1_hex);
 	check_and_freshen_file(shared_index, 1);
-- 
2.11.0
Message 1 of 1 in “read-cache: mark a file-local symbol with static”
  1. read-cache: mark a file-local symbol with staticRamsay Jones, Jan 1, 2017

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.