Skip to content

Commit

Permalink
Add .git-blame-ignore-revs file (#1793)
Browse files Browse the repository at this point in the history
The file contains commit hashes of noisy commits that can be ignored and
is meant for use with `git blame --ignore-revs-file` or via `git config`.

```
git config blame.ignoreRevsFile .git-blame-ignore-revs
```
  • Loading branch information
nickelc authored and arqunis committed Apr 18, 2022
1 parent 283af98 commit 3a3e399
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .git-blame-ignore-revs
@@ -0,0 +1,17 @@
# List of noisy revisions that can be ignored with git-blame(1).
#
# See `blame.ignoreRevsFile` in git-config(1) to enable it by default, or
# use it with `--ignore-revs-file` manually with git-blame.
#
# To "install" it:
#
# git config --local blame.ignoreRevsFile .git-blame-ignore-revs

# rustfmt
550030264952f0e0043b63f4582bb817ef8bbf37

# Apply rustfmt
dae2cb77b407044f44a7a2790d93efba3891854e

# Format the repository and add a workflow for formatting and linting (#1174)
9bbb25aac4d651804286f333eb503a72d41e473b
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -113,7 +113,15 @@ Improper commit summaries are:
The first letter of the summary must be capitalised. The summary should also
preferably fit into 50 characters, but this is not actively enforced.

# Noisy commits

Set `blame.ignoreRevsFile` to ignore [noise commits][noise-commits] in `git blame`:
```
git config blame.ignoreRevsFile .git-blame-ignore-revs
```

[test_ci]: .github/workflows/ci.yml
[noise-commits]: https://github.com/serenity-rs/serenity/commit/9bbb25aac4d651804286f333eb503a72d41e473b
[make]: https://github.com/sagiegurari/cargo-make
[`rustup`]: https://rustup.rs
[in-links]: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md

0 comments on commit 3a3e399

Please sign in to comment.