diff --git a/tasks/git/commit.sh b/tasks/git/commit.sh index b468a09..e786f6d 100755 --- a/tasks/git/commit.sh +++ b/tasks/git/commit.sh @@ -20,7 +20,7 @@ find "repo" -mindepth 1 -maxdepth 1 -print0 \ pushd "repo-committed" > /dev/null git config "color.ui" "always" git status - git diff | cat + git diff ${GIT_DIFF_OPTS} | cat git config "user.name" "${GIT_COMMIT_NAME}" git config "user.email" "${GIT_COMMIT_EMAIL}" diff --git a/tasks/git/commit.yml b/tasks/git/commit.yml index a625b1a..a9f15c2 100644 --- a/tasks/git/commit.yml +++ b/tasks/git/commit.yml @@ -18,6 +18,9 @@ params: GIT_COMMIT_NAME: GIT_COMMIT_EMAIL: + GIT_DIFF_OPTS: + # Optional + GIT_COMMIT_MESSAGE: # Optional # One of 'commit-info' resource of 'GIT_COMMIT_MESSAGE' param must be