From 8ae640638d214864ccbc8799815739e02dfa734d Mon Sep 17 00:00:00 2001
From: Egor Tensin <Egor.Tensin@gmail.com>
Date: Thu, 1 Jun 2017 07:10:14 +0300
Subject: add branch_fixup_committer_date

This routine sets every commit's "commit date" to its "author date".
It's really useful for me, given the amount of history rewriting I do
routinely.
---
 %HOME%/.bash_utils/git.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/%HOME%/.bash_utils/git.sh b/%HOME%/.bash_utils/git.sh
index 361d16e..77c9193 100644
--- a/%HOME%/.bash_utils/git.sh
+++ b/%HOME%/.bash_utils/git.sh
@@ -144,3 +144,8 @@ branch_backup_dropbox() (
 
     branch_backup "$USERPROFILE/Dropbox/backups"
 )
+
+branch_fixup_committer_dates() (
+    set -o errexit
+    git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
+)
-- 
cgit v1.2.3