1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add .git-blame-ignore-revs [ci skip]

for [Misc #18891]

It is a file that could be used with `git config blame.ignoreRevsFile`.
The file name `.git-blame-ignore-revs` is natively supported by GitHub,
so you don't need anything else to make it work on GitHub.
https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view

However, for your local git repository use, if you configure `blame.ignoreRevsFile`
globally, git expects you to have the file in every git repository you
use, which is nearly impossible.

So, for your local development, you're supposed to use this file with:

```
git config --local blame.ignoreRevsFile .git-blame-ignore-revs
```
This commit is contained in:
Takashi Kokubun 2022-07-21 09:51:31 -07:00
parent 79406e3600
commit 2661980435
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

7
.git-blame-ignore-revs Normal file
View file

@ -0,0 +1,7 @@
# This is a file used by GitHub to ignore the following commits on `git blame`.
#
# You can also do the same thing in your local repository with:
# $ git config --local blame.ignoreRevsFile .git-blame-ignore-revs
# Expand tabs
5b21e94bebed90180d8ff63dad03b8b948361089