Re: [PATCH] commit: check for empty message before the check for untouched template

2017-07-17 Thread Junio C Hamano
Kaartic Sivaraam writes: > The check for whether the template given to 'git commit' is untouched > is done before the empty message check. This results in a wrong error > message being displayed in the following case. When the user removes > everything in template

[PATCH] commit: check for empty message before the check for untouched template

2017-07-17 Thread Kaartic Sivaraam
The check for whether the template given to 'git commit' is untouched is done before the empty message check. This results in a wrong error message being displayed in the following case. When the user removes everything in template completely to abort the commit he is shown the "template