set user.name and user.email while committing message
This commit is contained in:
parent
a24fbae64d
commit
4df8e567eb
@ -3,7 +3,9 @@
|
|||||||
:bulk_threshold: 1000
|
:bulk_threshold: 1000
|
||||||
:sources:
|
:sources:
|
||||||
- https://gems.ruby-china.com
|
- https://gems.ruby-china.com
|
||||||
|
- https://rubygems.org/
|
||||||
:update_sources: true
|
:update_sources: true
|
||||||
:verbose: true
|
:verbose: true
|
||||||
|
:concurrent_downloads: 8
|
||||||
benchmark: false
|
benchmark: false
|
||||||
gem: "--no-document"
|
gem: "--no-document"
|
||||||
|
@ -388,6 +388,8 @@ function gc {
|
|||||||
echo 'invalid option...'
|
echo 'invalid option...'
|
||||||
done
|
done
|
||||||
emails=($GIT_EMAILS)
|
emails=($GIT_EMAILS)
|
||||||
|
git config user.name $name
|
||||||
|
git config user.email $emails[$index]
|
||||||
(git commit --verbose $*) || return
|
(git commit --verbose $*) || return
|
||||||
(git commit --amend --author="$name <$emails[$index]>") || return
|
(git commit --amend --author="$name <$emails[$index]>") || return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user