From 5c856b552c1206dec709be5b462fb70e5f3b1e85 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 12 Dec 2014 20:55:38 -0800 Subject: [PATCH] git_reset_author_to_user --- dotfiles/lib/shellenv/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index 7609739a..2e50626e 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -207,6 +207,10 @@ function git_reset_author() { git filter-branch -f --env-filter $filter_branch_command -- --all } +function git_reset_author_to_user { + git_reset_author -a "$(git config --get user.name)" -e "$(git config --get user.email)" "$@" +} + function set_osx_hostname() { local new_hostname="${1-imalison}" sudo scutil --set ComputerName $new_hostname