Thread (1 message) 1 message, 1 author, 2017-03-01

Re: [PATCH v4 15/22] read-cache: touch shared index files when used

From: Junio C Hamano <hidden>
Date: 2017-03-01 21:34:55

Christian Couder [off-list ref] writes:
+/*
+ * Signal that the shared index is used by updating its mtime.
+ *
+ * This way, shared index can be removed if they have not been used
+ * for some time.
+ */
+static void freshen_shared_index(char *base_sha1_hex, int warn)
+{
+	const char *shared_index = git_path("sharedindex.%s", base_sha1_hex);
+	if (!check_and_freshen_file(shared_index, 1) && warn)
+		warning("Could not freshen shared index '%s'", shared_index);
I'll downcase "Could" to match existing convention (no need to
resend only to update this one).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help