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

Re: Is --minimal ever not the right thing?

From
KTKonstantin Tokarev <annulen@yandex.ru>
Date
Dec 19, 2023, 18:09 UTC
Message-ID
<20231219210949.747ddd50@RedEyes>
In-Reply-To
<CABPp-BEmgOAj17DozyXNaf-9CawDic4uTpMbckef3+zHf7URqQ@mail.gmail.com>

On Tue, 19 Dec 2023 09:55:34 -0800 Elijah Newren <newren@gmail.com> wrote:

> minimal is guaranteed to produce a minimal diff, i.e. fewest total
> subtractions and additions.  That is sometimes "best" quality, but
> definitely not always. 

I second this. Recently I had a case when I had to use --anchored option of git diff to produce more informative diff instead of minimal one.

Previous: Elijah Newren
Message 4 of 4 in “Is --minimal ever not the right thing?”
  1. Tao KlerksDec 19, 2023
  2. Mike CastleDec 19, 2023
  3. Elijah NewrenDec 19, 2023
  4. Konstantin TokarevDec 19, 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.