Re: [PATCH v12 05/20] index-helper: add --strict
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jun 25, 2016, 14:43 UTC
- Message-ID
- <CACsJy8BbfjoyTpgB6+rgHW-HORjs20KLP-gU2q19Od1HgjkYcA@mail.gmail.com>
- In-Reply-To
- <1463694357-6503-6-git-send-email-dturner@twopensource.com>
On Thu, May 19, 2016 at 11:45 PM, David Turner <dturner@twopensource.com> wrote:
Show 8 quoted lines
> +--strict:: > +--no-strict:: > + Strict mode makes index-helper verify the shared memory after > + it's created. If the result does not match what's read from > + $GIT_DIR/index, the shared memory is destroyed. This makes > + index-helper take more than double the amount of time required > + for reading an index, but because it will happen in the > + background, it's not noticable.
Slightly off-topic, but for big indexes, running by a script or something, then the window for reading/verifying is not big and this strict verification will become noticable.
> `--strict` is enabled by default.
.. so we probably still want --strict by default for now. After this feature exits the experimental stage, we can switch it off.
-- Duy