I am aware of git's --ignore-revs
option for asking git blame
to ignore, for example, revisions that contain automated code formatting changes. I am working on a project to steer a moderate sized codebase towards a new code formatting tool, and creating lots of entries in our file listing revisions to ignore. I am pretty sure that for our fairly small use-case, there is no concern, regardless of the performance characteristics of this feature, but I am curious about how the --ignore-revs
feature works, and what the performance characteristics are.
Here are some rough statistics on my use-case;
- codebase has ~300k LOC
- ignore file may have ~100 entries by the end of this migration
- median formatting patch changes 1,500 LOC
Keep in mind, many of my teammates are using the git-lens VS Code extension, which appears to do a lot of git-blaming, since it shows the author inline everywhere throughout the editor. Presumably, their editor performs a blame on every file they open, so I expect I'll start getting some complaints if git blame
performance starts to drag.