Skip to content

Commit

Permalink
Configure whitespaces while configuring git
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKarabaza authored and rultor committed Oct 14, 2017
1 parent 5c80be1 commit 51a5e63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/git-elegant-configure
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ _user_email_key="user.email"
_user_email_default=$(git config --global "$_user_email_key")
_user_email_message="your user email"

_apply_whitespace_key="apply.whitespace"
_apply_whitespace_default="fix"
_apply_whitespace_message="whitespace issues on patching"


_configure() {
MODE=$1; shift
Expand All @@ -36,8 +40,8 @@ _configure() {
done
}

GLOBALS=(_core_comment_char _user_name _user_email)
LOCALS=(_core_comment_char _user_name _user_email)
GLOBALS=(_core_comment_char _user_name _user_email _apply_whitespace)
LOCALS=(_core_comment_char _user_name _user_email _apply_whitespace)

default() {
case "$1" in
Expand Down

0 comments on commit 51a5e63

Please sign in to comment.