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

diff --minimal versus --diff-algorithm=minimal

From
ДПДилян Палаузов <dilyan.palauzov@aegee.org>
Date
Nov 25, 2015, 18:21 UTC
Message-ID
<5655FC3E.7090705@aegee.org>
Hello,

after I put in ~/.config/git "[diff] algorithm=histogram", and called "git diff --minimal" I expect from git to use algorithm=minimal. But it uses histogram, unless I call "--diff-algorithm=minimal". According to the documentation, however, --minimal and --diff-algorithm=minimal shall be equivalent.

By the way, histogram produces more compact output than minimal (in terms of number of lines and in terms of @@ ... @@ snippets), but the documentation suggests, that minimal produces the most compact form that can be achieved.

I use git version 2.6.3.385.g1bc8fea.
Greetings
   Дилян
Message 1 of 1 in “diff --minimal versus --diff-algorithm=minimal”
  1. Дилян ПалаузовNov 25, 2015

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.