Re: [PATCH] commit: skip discarding the index if there is no pre-commit hook

2017-08-10 Thread Junio C Hamano
Kevin Willford writes: > If there is not a pre-commit hook, there is no reason to discard > the index and reread it. > > This change checks to presence of a pre-commit hook and then only > discards the index if there was one. > > Signed-off-by: Kevin Willford

Re: [PATCH] commit: skip discarding the index if there is no pre-commit hook

2017-08-10 Thread Jeff King
On Thu, Aug 10, 2017 at 02:54:16PM -0400, Kevin Willford wrote: > If there is not a pre-commit hook, there is no reason to discard > the index and reread it. > > This change checks to presence of a pre-commit hook and then only > discards the index if there was one. Sounds like a smart

[PATCH] commit: skip discarding the index if there is no pre-commit hook

2017-08-10 Thread Kevin Willford
If there is not a pre-commit hook, there is no reason to discard the index and reread it. This change checks to presence of a pre-commit hook and then only discards the index if there was one. Signed-off-by: Kevin Willford --- builtin/commit.c | 29