[前][次][番号順一覧][スレッド一覧]

ruby-changes:72632

From: Takashi <ko1@a...>
Date: Fri, 22 Jul 2022 02:00:53 +0900 (JST)
Subject: [ruby-changes:72632] 2661980435 (master): Add .git-blame-ignore-revs [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=2661980435

From 2661980435621b70ef82123285e8e31665a76047 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Thu, 21 Jul 2022 09:51:31 -0700
Subject: 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
```
---
 .git-blame-ignore-revs | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 .git-blame-ignore-revs

diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 0000000000..c185bf2fbf
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/.git-blame-ignore-revs#L1
+# 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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]