Set up git blame to ignore the "8-space-tab commits" If you're using git hyper-blame, the .git-blame-ignore-revs file should work; that is their default. If you're using my patches for upstream Git, the git config settings will work. If the interface for my upstream stuff changes, or an alternate version gets implemented, I'll update the script. Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..78ed208 --- /dev/null +++ b/.git-blame-ignore-revs
@@ -0,0 +1,3 @@ +# 8 space tabs changes +e2e76c34b4eb027eec44bf0ab81523c4359aa6a3 +ea2b9c835770b5c7f270cac69a20213de5cf97df
diff --git a/scripts/one-time-setup.sh b/scripts/one-time-setup.sh index 3bc4e55..90eca18 100755 --- a/scripts/one-time-setup.sh +++ b/scripts/one-time-setup.sh
@@ -11,3 +11,9 @@ echo Error: you need to set AKAROS_ROOT exit -1 fi + +# This feature may not be upstream yet - you can use brho's git if it isn't. +# This tells blame to ignore certain commits know to be uninteresting. + +git config --local --replace-all blame.ignorerevsfile .git-blame-ignore-revs +git config --local --replace-all blame.markignoredlines true