Re: [PATCH v6 08/10] submodule: add a helper to check if it is safe to write to .gitmodules
- From
Stefan Beller <sbeller@google.com>
- Date
- Oct 5, 2018, 23:50 UTC
- Message-ID
- <CAGZ79kbaeRVBLhYiqzisADHs+Af+c2giXcsCySAEe4jue_rWwA@mail.gmail.com>
- In-Reply-To
- <20181005130601.15879-9-ao2@ao2.it>
Show 5 quoted lines
> static int module_config(int argc, const char **argv, const char *prefix)
> {
> + enum {
> + CHECK_WRITEABLE = 1
> + } command = 0;Can we have the default named? Then we would only use states from within the enum?