]> git.phdru.name Git - cookiecutter.git/commitdiff
Rename mk-git-alias -> mk-git-aliases, add commit-with-message alias
authorOleg Broytman <phd@phdru.name>
Wed, 10 Aug 2016 18:11:32 +0000 (21:11 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 10 Aug 2016 18:11:32 +0000 (21:11 +0300)
project_template/mk-git-alias [deleted file]
project_template/mk-git-aliases [new file with mode: 0755]

diff --git a/project_template/mk-git-alias b/project_template/mk-git-alias
deleted file mode 100755 (executable)
index 2c96e6e..0000000
+++ /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 (executable)
index 0000000..83cfbe8
--- /dev/null
@@ -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\`"