Re: [PATCH v6 17/27] refs: move submodule code out of files-backend.c
From: Duy Nguyen <hidden>
Date: 2017-03-20 12:40:42
On Mon, Mar 20, 2017 at 4:05 AM, Michael Haggerty [off-list ref] wrote:
quoted
[...]diff --git a/refs/refs-internal.h b/refs/refs-internal.h index f732473e1d..dfa1817929 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h@@ -482,12 +482,11 @@ struct ref_store; /* refs backends */ /* - * Initialize the ref_store for the specified submodule, or for the - * main repository if submodule == NULL. These functions should call - * base_ref_store_init() to initialize the shared part of the - * ref_store and to record the ref_store for later lookup. + * Initialize the ref_store for the specified gitdir. These functions + * should call base_ref_store_init() to initialize the shared part of + * the ref_store and to record the ref_store for later lookup.Maybe mention that the function will make its own copy of `gitdir`?
I would think that's the default/sane behavior and not need to be mentioned? A function that keeps a pointer even after it exits, now that's something that must be documented. -- Duy