git: change styling (whitespace) without changing ownership/blame?

后端 未结 5 998
面向向阳花
面向向阳花 2020-11-29 04:15

We have a massive, ancient codebase that needs a lot of cleanup. We have always had coding standards and everyone has always tried to follow them, but they were not enforced

5条回答
  •  情话喂你
    2020-11-29 04:37

    For those using the VCS annotations feature in JetBrains IDEs to see the git blame output, you can set the -w (ignore whitespace), -M (detect moved or copied lines within a file) and -C (detect moved or copied lines across files) flags as follows:

    Configure annotation options

    • Right-click the annotations gutter and select Options from the context menu

    Source: IntelliJ docs

提交回复
热议问题