From 27e650206d1fb99396cc22d97223fcea71c947f8 Mon Sep 17 00:00:00 2001 From: AntonKarabaza Date: Wed, 11 Oct 2017 15:36:48 +0300 Subject: [PATCH] Configure whitespaces while configuring git #58 --- src/main/git-elegant-configure | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/git-elegant-configure b/src/main/git-elegant-configure index 2c2d747..e01aee8 100755 --- a/src/main/git-elegant-configure +++ b/src/main/git-elegant-configure @@ -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 @@ -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