X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=blobdiff_plain;f=project_template%2Fmk-git-aliases;fp=project_template%2Fmk-git-aliases;h=83cfbe8bd5a258001763676669f9db1fc6cbf028;hp=0000000000000000000000000000000000000000;hb=37155becdef212c617b90c2aa1a333a569b8a540;hpb=a034384debcba3d8afe31640c8c1cc14147bd330 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\`"