git_reset_author_to_user

This commit is contained in:
Ivan Malison 2014-12-12 20:55:38 -08:00
parent 27111a0c58
commit 5c856b552c

View File

@ -207,6 +207,10 @@ function git_reset_author() {
git filter-branch -f --env-filter $filter_branch_command -- --all 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() { function set_osx_hostname() {
local new_hostname="${1-imalison}" local new_hostname="${1-imalison}"
sudo scutil --set ComputerName $new_hostname sudo scutil --set ComputerName $new_hostname