GitToolBox icon indicating copy to clipboard operation
GitToolBox copied to clipboard

Add toggle for ignoring whitespace changes in the Blame dialog

Open seandstewart opened this issue 4 years ago • 4 comments

Hey there -

My team recently rolled out auto-formatting for our code base and as a result there are quite a few whitespace changes that are noise in the git blame, however there is a documented option -w which will ignore these types of changes.

Would it be possible to add a toggle allowing this? Or perhaps add a text field to allow passing in arbitrary command-line args?

seandstewart avatar Feb 12 '20 15:02 seandstewart

Hi, I cannot do that for built-in blame functionality but it's enabled there by default. If you open Git > Annotate you have context menu on gutter annotations and it's enabled - at least for me :)

My inline blame already uses -w

zielu avatar Feb 12 '20 15:02 zielu

Please provide example that illustrated the issue.

zielu avatar Feb 12 '20 20:02 zielu

this seems like a duplicate of #3

allanlaal avatar Mar 30 '21 13:03 allanlaal

can confirm @zielu -s Git → Annotate: On → gutter rightclick → options: ☑ Ignore Whitespaces

tested with newest IDEA

this issue can be closed

allanlaal avatar Mar 30 '21 13:03 allanlaal