Re: [PATCH 2/2] ident: make the useConfigOnly error messages more informative

2016-04-12 Thread Junio C Hamano
Junio C Hamano writes: > Marios Titas writes: > >> Yeah, maybe informative is not the right word. What I meant is that it >> directs the user to do the "git config user.name" thing, which is >> likely the most appropriate course of action in this situation. In any >> event, I think printing the

Re: [PATCH 2/2] ident: make the useConfigOnly error messages more informative

2016-04-01 Thread Junio C Hamano
Marios Titas writes: > Yeah, maybe informative is not the right word. What I meant is that it > directs the user to do the "git config user.name" thing, which is > likely the most appropriate course of action in this situation. In any > event, I think printing the env_hint message would be really

Re: [PATCH 2/2] ident: make the useConfigOnly error messages more informative

2016-03-30 Thread Marios Titas
On Wed, Mar 30, 2016 at 03:27:05PM -0700, Junio C Hamano wrote: Marios Titas writes: - && !(ident_config_given & IDENT_NAME_GIVEN)) - die("user.useConfigOnly set but no name given"); + && !(ident_config_given & I

Re: [PATCH 2/2] ident: make the useConfigOnly error messages more informative

2016-03-30 Thread Junio C Hamano
Marios Titas writes: > - && !(ident_config_given & IDENT_NAME_GIVEN)) > - die("user.useConfigOnly set but no name given"); > + && !(ident_config_given & IDENT_NAME_GIVEN)) { > + fputs(env_hint,

[PATCH 2/2] ident: make the useConfigOnly error messages more informative

2016-03-30 Thread Marios Titas
The env_hint message applies perfectly to the case when user.useConfigOnly is set and at least one of the user.name and the user.email are not provided. Additionally, use a more descriptive error message when that happens. Signed-off-by: Marios Titas --- ident.c | 12 1 file changed