git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC] rebase: make resolve message clearer for inexperienced users

From
William Duclot <william.duclot@gmail.com>
Date
Jul 10, 2017, 18:31 UTC
Message-ID
<20170710183101.GA13122@Haydn>
In-Reply-To
<xmqqvan06yo8.fsf@gitster.mtv.corp.google.com>
Junio C Hamano writes:
Show 30 quoted lines
> William Duclot <william.duclot@gmail.com> writes:
> 
> > diff --git a/git-rebase.sh b/git-rebase.sh
> > index 2cf73b88e..50457f687 100755
> > --- a/git-rebase.sh
> > +++ b/git-rebase.sh
> > @@ -55,9 +55,10 @@ LF='
> >  '
> >  ok_to_skip_pre_rebase=
> >  resolvemsg="
> > -$(gettext 'When you have resolved this problem, run "git rebase --continue".
> > -If you prefer to skip this patch, run "git rebase --skip" instead.
> > -To check out the original branch and stop rebasing, run "git rebase --abort".')
> > +$(gettext 'Resolve this conflict manually, mark it as resolved with "git add <conflicted_file>",
> > +then run "git rebase --continue".
> > +You can instead skip this commit: run "git rebase --skip".
> > +To stop the whole rebasing and get back to your pre-rebase state, run "git rebase --abort".')
> >  "
> 
> I find the updated one easier to follow in general.
> Disecting the phrases in the above:
> 
>  - The original said "When you have resolved this problem", without
>    giving a guidance how to resolve, and without saying what the
>    problem is.  The updated one says "conflict" to clarify the
>    "problem", and suggests "git add" as the tool to use after a
>    manual resolition.  
> 
>    Modulo that there are cases where "git rm" is the right tool, the
>    updated one is strict improvement.

I also wrote "<conflicted_file>" when there could be several. Maybe 'mark it as resolved with "git add/rm"' would be a better (and shorter) formulation?

Show 9 quoted lines
>  - The original said "to check out the original branch and stop
>    rebasing", and the updated one says "to stop and get back to",
>    which is in a more logical order.  
> 
>    "the whole rebasing" used as a noun feels something is missing
>    there, though.  I wonder if "To get back to the state before you
>    started 'rebase -i', run 'git rebase --abort'" is sufficient,
>    without saying anything further about abandoning the rebase in
>    progress (i.e. "and stop rebasing" or "stop the whole rebasing").
Definitely seems clearer to me: straight to the point.
> Thanks.

Happy to see this patch seems interesting to you. I feel like a lot of git messages could be improved this way to offer a UI more welcoming to inexperienced user (which is a *broad* segment of users). But I am not aware of the cost of translation of this kind of patch: would several patches like this one be welcomed?

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “rebase: make resolve message clearer for inexperienced users”
  1. rebase: make resolve message clearer for inexperienced usersWilliam Duclot, Jul 9, 2017
  2. Junio C HamanoJul 10, 2017
  3. William DuclotJul 10, 2017
  4. Junio C HamanoJul 12, 2017
  5. Philip OakleyJul 16, 2017
  6. Phillip WoodJul 24, 2017
  7. Junio C HamanoJul 24, 2017
  8. Phillip WoodJul 26, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.