Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
chore: add .git-blame-ignore-revs to ignore prettier --write . co…
Browse files Browse the repository at this point in the history
…mmit in diffs
  • Loading branch information
davidmurdoch committed Jun 21, 2023
1 parent beee952 commit 51351f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# .git-blame-ignore-revs

# Ran `npx [email protected] --write .` on the entire codebase

## TODO: update this line with the commit hash of the `prettier --write .` commit once it lands in develop
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
- `cd ganache`
- `npm install` (use npm v6)
- On Linux and macOS: run `source completions.sh` to enable autocomplete for npm scripts.
- For better local `git diff` results run `git config blame.ignoreRevsFile .git-blame-ignore-revs` to automatically ignore
large formatting/style revisions.

## Solving node-gyp issues

Expand Down
6 changes: 5 additions & 1 deletion scripts/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ require("./link-ts-references");
execSync("npm run tsc", execArgs);

console.log("");
console.log(chalk`{bold.cyan Tips:}`);
console.log(
chalk`{bold.cyan Tip:} {cyan run} {bold.yellow.dim source completions.sh} {cyan to supply bash completions for npm scripts}`
chalk` {cyan run} {bold.yellow.dim source completions.sh} {cyan to supply bash completions for npm scripts}`
);
console.log(
chalk` {cyan run} {bold.yellow.dim git config blame.ignoreRevsFile .git-blame-ignore-revs} {cyan to ignore large formatting/style revisions from local {bold.yellow.dim git diff} results}`
);
console.log("");

0 comments on commit 51351f8

Please sign in to comment.