This PR introduces a `.git-blame-ignore-revs` file to the JDK repo root 
directory. This file contains a list of git commit hashes that should be 
excluded from consideration when running [git-blame 
(1)](https://git-scm.com/docs/git-blame). This file is [automatically honored 
by Github (with an escape 
hatch)](https://docs.github.com/en/repositories/working-with-files/using-files/viewing-and-understanding-files#ignore-commits-in-the-blame-view).
 Locally, however, every developer that wants to make use of this needs to 
either configure it using [`git config 
blame.ignoreRevsFile`](https://git-scm.com/docs/git-blame#Documentation/git-blame.txt-blameignoreRevsFile)
 or specify it on the command line using [`git blame 
--ignore-revs-file`](https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-filefile).

Initially, `.git-blame-ignore-revs` contains the commits associated with the 
refactoring from `NULL` to `nullptr` in hotspot. Personally, it has already 
happened to me multiple times that I ran `git blame` only to find one of those 
commits. This could of course be solved with more complicated `git`invocations. 
Maintaining this file of ignored revisions, however, gives us a tool to 
alleviate this papercut from the already arduous process of tracking down 
failures in the JDK.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - Add ignore revs file for git blame

Changes: https://git.openjdk.org/jdk/pull/31402/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31402&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8385950
  Stats: 184 lines in 1 file changed: 184 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/31402.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31402/head:pull/31402

PR: https://git.openjdk.org/jdk/pull/31402

Reply via email to