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

"--color-moved" ignored in "git diff --word-diff=porcelain --color-moved"

From
HBHans Henrik Bergan <divinity76@gmail.com>
Date
Sep 10, 2020, 18:10 UTC
Message-ID
<CAJmy8YF7GpTO08DEShj9L+HuC0bBar75MZyL_vu99YDOO7kKmA@mail.gmail.com>

using git 2.28.0, and when doing >>>git diff --color-moved --word-diff=porcelain lines.txt<<< the --color-moved argument seems to be completely ignored, and seems there's no way to differentiate moved lines from added/deleted lines in the output, is that intended? if the 2 arguments are incompatible, wouldn't it be better to throw an error? or at least print a warning in stderr? instead of just ignoring one of the arguments?

Message 1 of 1 in “"--color-moved" ignored in "git diff --word-diff=porcelain --color-moved"”
  1. Hans Henrik BerganSep 10, 2020

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.