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

'git diff-index' doesn't honor the 'diff.algorithm' variable

From
Dmitry Gutov <dgutov@yandex.ru>
Date
May 13, 2016, 23:45 UTC
Message-ID
<9d15b6c8-ed97-7352-3df1-efab1b4ffadb@yandex.ru>
Hi all,

Subj. ...even though it's explicitly mentioned in the subcommand's man page. Git version 2.7.4 here.

To elaborate:
- Call 'git config --global diff.algorithm histogram'.
- Try the example from http://stackoverflow.com/a/36551123/615245.

'git diff test.css' gives the expected output using the non-default algorithm.

'git diff-index -p HEAD -- test.css' uses the default one.

Best regards, Dmitry.

Next: Junio C Hamano
Message 1 of 5 in “'git diff-index' doesn't honor the 'diff.algorithm' variable”
  1. Dmitry GutovMay 13, 2016
  2. Junio C HamanoMay 14, 2016
  3. Dmitry GutovMay 15, 2016
  4. Junio C HamanoMay 15, 2016
  5. Dmitry GutovMay 15, 2016

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.