Skip to content

Conversation

@bastimeyer
Copy link
Member

See man git-blame, git blame --ignore-revs-file <file> and the blame.ignoreRevsFile git config option.



Step 3 of 3+x, as detailed in #5145

These are currently the commits with the biggest number of changed files:

git log --max-count=2000 --no-merges --shortstat --format='%H %cs' \
  | awk '/^[a-f0-9]{40}/ { c=$0 }; /^ [0-9]+ files? changed/ { print $1 " " c }' \
  | sort -nr \
  | awk '$1 >= 25 { print "- " $2 ": " $1 " (" $3 ")" }'

I had several different versions of the ignore list, but in the end I decided to remove some commit IDs again where non-syntax-related stuff was included or where the changes didn't affect the blame history much, like commits with many added new lines, or changes in terms of relevance, like import statements, etc.

I'm pretty confident with the current list of commit IDs now. Having a blame ignore list can already be confusing when checking a file's (blame-)history, so the ignored bulk-changes should all be trivial.


Example:

See `man git-blame`, `git blame --ignore-revs-file <file>`
and the `blame.ignoreRevsFile` git config option.
@bastimeyer bastimeyer mentioned this pull request Feb 10, 2023
5 tasks
@gravyboat gravyboat merged commit ffca7bd into streamlink:master Feb 10, 2023
@bastimeyer bastimeyer deleted the git-blame-ignore-revs branch February 10, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants