Skip to content

Commit 17accad

Browse files
erwinkramerjskeet
authored andcommitted
Introduce .git-blame-ignore-revs
Signed-off-by: Erwin Kramer <erwinkramer@hotmail.com>
1 parent db3feba commit 17accad

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore large mechanical/style-only commits in git blame. Sorted by oldest to newest.
2+
ae75b32c283cd531a7af38dd9c6fa66d2540109f
3+
db3feba27836691d1c85315c8fcb326d79ecc3a8

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ local development environment. Then add this repository as the upstream.
3434
git clone https://github.com/mygithuborg/sdk-csharp.git
3535
cd sdk-csharp
3636
git remote add upstream https://github.com/cloudevents/sdk-csharp.git
37+
git config blame.ignoreRevsFile .git-blame-ignore-revs
3738
```
3839

40+
The final command is optional, but recommended. It makes `git blame` ignore
41+
mechanical formatting/refactoring commits listed in [.git-blame-ignore-revs](.git-blame-ignore-revs).
42+
3943
## Branches
4044

4145
The first thing you'll need to do is create a branch for your work.

0 commit comments

Comments
 (0)