How to use Annotate(/Blame) with --ignore-rev/--ignore-revs-file option?
已回答
I need to re-format a large java code base. This reformat will most likely touch many source files and many lines. When later using the Annotate/Blame feature the gutter may then display a lot of lines with the reformatting commit. However I am more interested in the "real" commits, before the reformatting.
The Git blame command includes the options "-w", "--ignore-rev" and "--ignore-revs-file" to resolve this issue (https://git-scm.com/docs/git-blame).
The Annotate feature in IDEA already contains the "Ignore whitespaces" feature, corresponding to the "-w" option of the Git blame command. However I found no way to specify the "--ignore-rev" or "--ignore-revs-file" option.
Any help?
Many Thanks in advance,
Udo
请先登录再写评论。
Regrettably, there is no option to enable "--ignore-rev" or "--ignore-revs-file".
There is a request for it on YouTrack, please vote for it:
https://youtrack.jetbrains.com/issue/IDEA-221278
As a workaround, you may use git config blame.ignoreRevFile