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

Re: [PATCH 0/2] advice: add diverging advice

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 9, 2023, 23:44 UTC
Message-ID
<xmqqv8j97ami.fsf@gitster.g>
In-Reply-To
<ZAix68A9e6RHz69y@nand.local>
Taylor Blau <me@ttaylorr.com> writes:
Show 13 quoted lines
> On Tue, Mar 07, 2023 at 08:48:32PM -0600, Felipe Contreras wrote:
>> Not all our users are experts in git who understand their configurations
>> perfectly, some might be stuck in a simple error:
>>
>>   Not possible to fast-forward, aborting.
>>
>> That's not very friendly.
>>
>> Let's add a bit more advice in case the user doesn't know what's going
>> on.
>
> Thanks for improving this case. I think the new advice() is reasonable
> and will be helpful for users who might otherwise get stuck here.

We may want to further tweak the advise() message depending on the caller [*], but that can come on top after these two patches settle.

[Footnote]
* When a failed "git pull" gave the new advise() message, the user
  may not be advanced enough to adjust the advice to run "git merge
  --no-ff" to the given situation, for example.
Previous: Junio C Hamano
Message 7 of 7 in “advice: add diverging advice”
  1. 0/2 advice: add diverging adviceFelipe Contreras, Mar 8, 2023
  2. 1/2 advice: add diverging advice for novicesFelipe Contreras, Mar 8, 2023
  3. Junio C HamanoMar 8, 2023
  4. 2/2 advice: make diverging advice configurableFelipe Contreras, Mar 8, 2023
  5. Taylor BlauMar 8, 2023
  6. Junio C HamanoMar 8, 2023
  7. Junio C HamanoMar 9, 2023

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.