From f1b1a9fd5ed769f4db0c2ab7e1dcbbd0146b7578 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 11 Jul 2024 06:45:40 +0000 Subject: [PATCH] Ignore whitespace commits (#13889) This let's GitHub and the Git cli optionally "skip" certain revs when generating `git blame`. Co-authored-by: Gilles Peiffer --- .git-blame-ignore-revs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000000..1f096a41b6 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,24 @@ +# .git-blame-ignore-revs +# +# This file consists of a list of commits that should be ignored for +# `git blame` purposes. This is useful for ignoring commits that only +# changed whitespace / indentation / formatting, but did not change +# the underlying syntax tree. +# +# GitHub will pick this up automatically for blame views: +# https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view +# To use this file locally, run: +# git blame --ignore-revs-file .git-blame-ignore-revs +# To always use this file by default, run: +# git config --local blame.ignoreRevsFile .git-blame-ignore-revs +# To disable this functionality, run: +# git config --local blame.ignoreRevsFile "" +# Comments are optional, but may provide helpful context. + +# 2023-04-20 Set default tab_size for JSON to 2 and apply new formatting +# https://github.com/zed-industries/zed/pull/2394 +eca93c124a488b4e538946cd2d313bd571aa2b86 + +# 2024-07-05 Improved formatting of default keymaps (single line per bind) +# https://github.com/zed-industries/zed/pull/13887 +813cc3f5e537372fc86720b5e71b6e1c815440ab