From: Duy Nguyen Date: Sun, 26 Mar 2017 02:16:56 GMT Subject: Re: [PATCH v6 18/27] files-backend: replace submodule_allowed check in files_downcast() Message-ID: In-Reply-To: <004082a0-871f-cd41-edc5-522b5c2b3b58@alum.mit.edu> On Mon, Mar 20, 2017 at 4:18 AM, Michael Haggerty wrote: >> +/* ref_store_init flags */ >> +#define REF_STORE_READ (1 << 0) > > I asked [1] in reply to v5 whether `REF_STORE_READ` is really necessary > but I don't think you replied. Surely a reference store that we can't > read would be useless? Can't we just assume that any `ref_store` is > readable and drop this constant? I deleted it then I realized many lines like these files_downcast(ref_store, REF_STORE_READ, "read_raw_ref"); would become files_downcast(ref_store, 0, "read_raw_ref"); I think for newcomers, the former gives a better hint what the second argument is than a plain zero in the latter, so I'm inclined to keep it. -- Duy