Re: [PATCH v3 23/24] introduce GIT_INDEX_VERSION environment variable
- From
Thomas Gummerer <t.gummerer@gmail.com>
- Date
- Aug 21, 2013, 04:01 UTC
- Message-ID
- <87li3v4rqg.fsf@gmail.com>
- In-Reply-To
- <CACsJy8A_gJXUm2WVPCXDZbWFCusvyoEUJaGJT_ROC9uzxc_A6w@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 14 quoted lines
> On Mon, Aug 19, 2013 at 2:42 AM, Thomas Gummerer <t.gummerer@gmail.com> wrote: >> Respect a GIT_INDEX_VERSION environment variable, when a new index is >> initialized. Setting the environment variable will not cause existing >> index files to be converted to another format for additional safety. >> >> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> >> --- >> read-cache.c | 9 +++++++-- >> 1 file changed, 7 insertions(+), 2 deletions(-) > > There should be a line or two about this variable in git.txt, section > "Environment variables". We could even have core.defaultIndexVersion > for people who don't want to set environment variables (and set this > key in ~/.gitconfig instead) but this is not important now.
Ok, I'll add it in git.txt. I agree, core.defaultIndexVersion can still be done in a follow-up patch, the environment variable is the important thing now because it's used for testing. Existing repositories have to be converted with git-update-index anyway.