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