summary refs log tree commit diff
path: root/.git-blame-ignore-revs
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-03-02 02:13:27 +0200
committerArtturin <Artturin@artturin.com>2022-03-02 02:25:13 +0200
commit64476294c5dac2a500d9da73528e1bdc36a41b05 (patch)
tree25cd80ea80428c4f0654680dfd21906ff40c1216 /.git-blame-ignore-revs
parent43a765422f931e96cc1c1299a3164adf6bfe5e84 (diff)
downloadnixpkgs-64476294c5dac2a500d9da73528e1bdc36a41b05.tar
nixpkgs-64476294c5dac2a500d9da73528e1bdc36a41b05.tar.gz
nixpkgs-64476294c5dac2a500d9da73528e1bdc36a41b05.tar.bz2
nixpkgs-64476294c5dac2a500d9da73528e1bdc36a41b05.tar.lz
nixpkgs-64476294c5dac2a500d9da73528e1bdc36a41b05.tar.xz
nixpkgs-64476294c5dac2a500d9da73528e1bdc36a41b05.tar.zst
nixpkgs-64476294c5dac2a500d9da73528e1bdc36a41b05.zip
git-blame-ignore-revs: add a file to ignore certain git revisions
to be able to set the ignoreRevsFile globally we will need the patch in
this email thread https://lore.kernel.org/git/20190107213013.231514-1-brho@google.com/
Diffstat (limited to '.git-blame-ignore-revs')
-rw-r--r--.git-blame-ignore-revs32
1 files changed, 32 insertions, 0 deletions
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 00000000000..4a581f9dcea
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,32 @@
+# This file contains a list of commits that are not likely what you
+# are looking for in a blame, such as mass reformatting or renaming.
+# You can set this file as a default ignore file for blame by running
+# the following command.
+#
+# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
+#
+# To temporarily not use this file add
+# --ignore-revs-file=""
+# to your blame command.
+#
+# The ignoreRevsFile can't be set globally due to blame failing if the file isn't present.
+# To not have to set the option in every repository it is needed in,
+# save the following script in your path with the name "git-bblame"
+# now you can run
+# $ git bblame $FILE
+# to use the .git-blame-ignore-revs file if it is present.
+#
+# #!/usr/bin/env bash
+# repo_root=$(git rev-parse --show-toplevel)
+# if [[ -e $repo_root/.git-blame-ignore-revs ]]; then
+#     git blame --ignore-revs-file="$repo_root/.git-blame-ignore-revs" $@
+# else
+#     git blame $@
+# fi
+
+
+# nixos/modules/rename: Sort alphabetically
+1f71224fe86605ef4cd23ed327b3da7882dad382
+
+# nixos: fix module paths in rename.nix
+d08ede042b74b8199dc748323768227b88efcf7c