From 37155becdef212c617b90c2aa1a333a569b8a540 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 10 Aug 2016 21:11:32 +0300 Subject: [PATCH] Rename mk-git-alias -> mk-git-aliases, add commit-with-message alias --- project_template/mk-git-alias | 5 ----- project_template/mk-git-aliases | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) delete mode 100755 project_template/mk-git-alias create mode 100755 project_template/mk-git-aliases 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\`" -- 2.39.5