summary refs log tree commit diff
path: root/git-girf.1
diff options
context:
space:
mode:
Diffstat (limited to 'git-girf.1')
-rw-r--r--git-girf.131
1 files changed, 31 insertions, 0 deletions
diff --git a/git-girf.1 b/git-girf.1
new file mode 100644
index 0000000..5405075
--- /dev/null
+++ b/git-girf.1
@@ -0,0 +1,31 @@
+.\" SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
+.\" SPDX-License-Identifier: EUPL-1.2 OR CC-BY-SA-4.0
+.Dd $Mdocdate$
+.Dt GIT-GIRF 1
+.Os
+.Sh NAME
+.Nm git-girf
+.Nd generate an
+.Dq ignore refs file
+for git blame
+.Sh SYNOPSIS
+.Nm
+.Ar prog...
+.Sh DESCRIPTION
+For every non-merge commit in the history, compare the standard output
+of running
+.Ar command
+with each changed file as standard input, before and after the
+commit's changes.  Print the commit hash for each commit where the
+output has not changed for any file.  This output is suitable to be
+used with the
+.Fl --ignore-revs-file
+argument of
+.Xr git-blame 1 .
+.Sh EXIT STATUS
+.Ex -std
+.Sh EXAMPLES
+.Dl $ git girf nixpkgs-fmt > .git-blame-ignore-revs
+.Sh SEE ALSO
+.Xr git-blame 1 ,
+.Xr git-config 1