From: Oleg Broytman Date: Wed, 10 Aug 2016 18:11:32 +0000 (+0300) Subject: Rename mk-git-alias -> mk-git-aliases, add commit-with-message alias X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=37155becdef212c617b90c2aa1a333a569b8a540;p=cookiecutter.git Rename mk-git-alias -> mk-git-aliases, add commit-with-message alias --- diff --git a/project_template/mk-git-alias b/project_template/mk-git-alias deleted file mode 100755 index 2c96e6e..0000000 --- a/project_template/mk-git-alias +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -exec git config --local alias.tag-with-version \ - "!GIT_EDITOR='vim -c \"source get-commit-message.vim\"' \ - exec git tag -s \`python setup.py --version\`" diff --git a/project_template/mk-git-aliases b/project_template/mk-git-aliases new file mode 100755 index 0000000..83cfbe8 --- /dev/null +++ b/project_template/mk-git-aliases @@ -0,0 +1,9 @@ +#!/bin/sh + +git config --local alias.commit-with-message \ + "!GIT_EDITOR='vim -c \"source get-commit-message.vim\"' \ + exec git commit -v" + +exec git config --local alias.tag-with-message \ + "!GIT_EDITOR='vim -c \"source get-commit-message.vim\"' \ + exec git tag -s \`python setup.py --version\`"