From 75ef56c961712a28748ae491d12c9f9ba8fddf1d Mon Sep 17 00:00:00 2001 From: Sadeed Date: Tue, 10 Oct 2023 13:09:18 +0500 Subject: [PATCH] git-guilt: add page (#10890) * git-guilt: add page * git-guilt: fix command placeholders Co-authored-by: Reinhart Previano Koentjoro --------- Co-authored-by: Reinhart Previano Koentjoro --- pages/common/git-guilt.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/common/git-guilt.md diff --git a/pages/common/git-guilt.md b/pages/common/git-guilt.md new file mode 100644 index 0000000000..0b006e72ba --- /dev/null +++ b/pages/common/git-guilt.md @@ -0,0 +1,29 @@ +# git guilt + +> Show total blame count for files with unstaged changes or calculate the change in blame between two revisions. +> Part of `git-extras`. +> More information: . + +- Show total blame count: + +`git guilt` + +- Calculate the change in blame between two revisions: + +`git guilt {{first_revision}} {{last_revision}}` + +- Show author emails instead of names: + +`git guilt --email` + +- Ignore whitespace only changes when attributing blame: + +`git guilt --ignore-whitespace` + +- Find blame delta over the last three weeks: + +`git guilt 'git log --until="3 weeks ago" --format="%H" -n 1'` + +- Find blame delta over the last three weeks (git 1.8.5+): + +`git guilt @{3.weeks.ago}`