From: Oleg Broytman Date: Tue, 2 Aug 2016 16:19:53 +0000 (+0300) Subject: Make tag-with-version alias X-Git-Tag: 0.0.15~47 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=6fbfe17824e09c69d47d5c03971a6eb594f5b6be;p=m_librarian.git Make tag-with-version alias --- diff --git a/mk-tag-alias b/mk-tag-alias new file mode 100755 index 0000000..658fdbc --- /dev/null +++ b/mk-tag-alias @@ -0,0 +1,5 @@ +#!/bin/sh + +exec git config --local alias.tag-with-version \ + "!GIT_EDITOR='vim -c \"source tag.vim\"' \ + exec git tag -s \`python setup.py --version\`" diff --git a/tag.vim b/tag.vim new file mode 100644 index 0000000..27d311b --- /dev/null +++ b/tag.vim @@ -0,0 +1,9 @@ +set fileencoding=utf-8 +edit ChangeLog +normal 1G3yy +buffer 1 +normal 1GPf ;Da: +. +normal JJjdd +s/\.$// +update