From: Junio C Hamano Date: Tue, 21 Jun 2011 18:43:58 GMT Subject: Re: [PATCH 01/13] advice: Introduce error_resolve_conflict Message-ID: <7vtybj81ox.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110621155555.GF15461@elie> Jonathan Nieder writes: > Ramkumar Ramachandra wrote: > >> Introduce error_resolve_conflict corresponding to >> die_resolve_conflict, and implement the latter function in terms of >> the former. The only trade-off is that die_resolve_conflict is a >> little noisier now. > > The above doesn't tell me what I would want to know, namely: > > 1. The impact of this patch is to change an error message. > > 2. The change is from > > fatal: 'commit' is not possible because you have unmerged files. > Please, fix them up in the work tree ... > ... etc, etc ... > > to > > error: 'commit' is not ... > error: Please, fix them up... > ... etc, etc ... > fatal: Exiting because of an unresolved conflict. > > 3. The intended benefit is that new, future callers may want the "error" > without exiting. Your good suggestions for inexperienced people are always appreciated. > Notice that after writing the above, a little detail jumps out: > namely, the second "error:" line is giving advice, so it might make > sense to make it say "hint:" instead. Yes, and also I suspect that it shouldn't be hard to do this refactoring without changing the output.