Add .git-blame-ignore-revs (#9415)
This commit is contained in:
1 parent
7d80bae76a
commit
b7be0b5dbb
2 files changed
+42
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# git-blame ignored revisions
|
||||
# To configure, run
|
||||
# git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||
# Requires Git > 2.23
|
||||
# See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt
|
||||
|
||||
# Prettier bump after release
|
||||
# 2.1.2
|
||||
c4d3014b95122f4ad19c319a9b3f5f9625d6003f
|
||||
# 2.1.1
|
||||
a8363197118e530d948978da6e5c414a765ba9c0
|
||||
# 2.1.0
|
||||
cef4bcafc7867050582d3107632bde7e722575d1
|
||||
# 2.0.5
|
||||
d33f8a3e2c0a59cb9f383ddec5bbf8d296bb1a23
|
||||
# 2.0.4
|
||||
592149791e4fea656d8c5fa34c25d4d19076a07a
|
||||
# 2.0.3
|
||||
64b3ac9e8e933a09f049b7cace540ee526f4d5a4
|
||||
# 2.0.2
|
||||
c1dd17cf383b78fd8fd43442bb5db59b51900410
|
||||
# 2.0.1
|
||||
f56d620be529b60c13032681446c1eb76e0fb088
|
||||
# 2.0.0
|
||||
9dad95b35f935edce4c3d6cfa45c79a0b9c82b9f
|
||||
|
||||
# Categorize tests (#8239 #8248 #8249 #8251)
|
||||
b585bd6fa4d750a98e277303c428edfc48fea3f4
|
||||
f8c5b1fd1da4d67bc09d12bc3411b70d0fa4f4a1
|
||||
b6225788966a4a6b49e652044337436642dcd627
|
||||
7ad515111e79a3f304d5480d6586314222052333
|
||||
@@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
const fs = require("fs");
|
||||
const execa = require("execa");
|
||||
const semver = require("semver");
|
||||
const { logPromise, readJson, writeJson } = require("../utils");
|
||||
@@ -15,6 +16,16 @@ async function commit(version) {
|
||||
"-am",
|
||||
`Bump Prettier dependency to ${version}`,
|
||||
]);
|
||||
|
||||
// Add rev to `.git-blame-ignore-revs` file
|
||||
const file = ".git-blame-ignore-revs";
|
||||
const mark = "# Prettier bump after release";
|
||||
const rev = await execa.stdout("git", ["rev-parse", "HEAD"]);
|
||||
let text = fs.readFileSync(file, "utf8");
|
||||
text = text.replace(mark, `${mark}\n# ${version}\n${rev}`);
|
||||
fs.writeFileSync(file, text);
|
||||
await execa("git", ["commit", "-am", `Git blame ignore ${version}`]);
|
||||
|
||||
await execa("git", ["push"]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user