From: Jonathan Nieder Date: Fri, 26 Nov 2010 05:56:57 GMT Subject: Re: [RFC/PATCH 01/18] advice: add error_resolve_conflict() function Message-ID: <20101126055656.GB18751@burratino> In-Reply-To: <20101125212050.5188.50630.chriscool@tuxfamily.org> Christian Couder wrote: > --- a/advice.c > +++ b/advice.c > @@ -34,6 +34,13 @@ int git_default_advice_config(const char *var, const char *value) > return 0; > } > > +const char unmerged_file_advice[] = > + "'%s' is not possible because you have unmerged files.\n" > + "Please, fix them up in the work tree, and then use 'git add/rm ' as\n" > + "appropriate to mark resolution and make a commit, or use 'git commit -a'."; > +const char unmerged_file_no_advice[] = > + "'%s' is not possible because you have unmerged files."; static? > --- a/advice.h > +++ b/advice.h > @@ -13,5 +13,6 @@ extern int advice_detached_head; > int git_default_advice_config(const char *var, const char *value); > > extern void NORETURN die_resolve_conflict(const char *me); > +extern int error_resolve_conflict(const char *me); I like it.