On Mon, May 19, 2008 at 7:47 PM, Junio C Hamano [off-list ref] wrote:
Why does *everybody* keep missing the whole point of this patch?
Isn't it to make it possible to change the error messages at porcelain
level while allowing the plumbing to remain backward compatibility?
--
Cheers,
Sverre Rabbelier
Minor nit, "uptodate" is not a word. Should be either "up-to-date" or
"up to date"; most dictionaries list both.
Why does *everybody* keep missing the whole point of this patch?
That section needs a comment stating that it's the scripting API, not just
an arbitrary set of messages. For that matter, maybe those shouldn't be
the default set, but an alternate set used (as a group) by plumbing
programs; I don't think it's too likely that there will be a whole lot of
new plumbing programs, and new porcelain programs that don't specify
anything probably ought to get something more generic.
-Daniel
*This .sig left intentionally blank*
From: Junio C Hamano <hidden> Date: 2016-06-15 22:44:37
Daniel Barkalow [off-list ref] writes:
On Mon, 19 May 2008, Junio C Hamano wrote:
quoted
Why does *everybody* keep missing the whole point of this patch?
That section needs a comment stating that it's the scripting API, not just
an arbitrary set of messages.
Yeah, that is a very good explanation. Thanks for a constructive
suggestion for improvements.
Here is an incremental on top of the one I sent out, in case people want
to improve on it.
unpack-trees.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
@@ -8,7 +8,15 @@#include"progress.h"#include"refs.h"-staticstructunpack_trees_error_msgsunpack_default_errors={+/*+*Errormessagesexpectedbyscriptsoutofplumbingcommandssuchas+*read-tree.Non-scriptedPorcelainisnotrequiredtousethesemessages+*andinfactareencouragedtorewordthemtobettersuittheirparticular+*situationbetter.Seehow"git checkout"replacesnot_uptodate_fileto+*explainwhyitdoesnotallowswitchingbetweenbrancheswhenyouhave+*localchanges,forexample.+*/+staticstructunpack_trees_error_msgsunpack_plumbing_errors={/* would_overwrite */"Entry '%s' would be overwritten by merge. Cannot merge.",