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

git diff --functional-changes ?

From
CHChristian Heller <christian.heller63@gmail.com>
Date
Aug 19, 2022, 16:10 UTC
Message-ID
<CAOu2uD_CaVxxEtZhe4197ERDFASckUBtK_NyhmwQXr=5_reSXw@mail.gmail.com>
Feature request

I recently ran GNU indent on a larger C project which made all diffs horribly noisy. Is there an option for git diff to ignore changes due to the placement of curly braces '{', '}' ? Equally helpful would be an option to ignore changes to comments.

Something like:
- delete all comments
- re-normalize line-breaks and indentation
- show only 'functional' changes

Regards, Chris

Next: Johannes Schindelin
Message 1 of 2 in “git diff --functional-changes ?”
  1. Christian HellerAug 19, 2022
  2. Johannes SchindelinAug 22, 2022

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.