From: Oleg Broytman Date: Fri, 2 Aug 2024 10:44:15 +0000 (+0300) Subject: Build: Add `devscripts` X-Git-Tag: 5.4.0~1 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f96e45db97dd9b6bbd39d55a3758e99b2fad50f6;p=bookmarks_db.git Build: Add `devscripts` --- diff --git a/devscripts/README.html b/devscripts/README.html new file mode 100644 index 0000000..5e31e8d --- /dev/null +++ b/devscripts/README.html @@ -0,0 +1,3 @@ +Bookmarks database +and Internet robot - a set of programs I use to manipulate my +bookmarks. diff --git a/devscripts/get-commit-message.vim b/devscripts/get-commit-message.vim new file mode 100644 index 0000000..edb8658 --- /dev/null +++ b/devscripts/get-commit-message.vim @@ -0,0 +1,9 @@ +set fileencoding=utf-8 +edit doc/ChangeLog +normal 1G3yy +buffer 1 +normal 1GPf ;Da: +. +normal JJ +s/\.$// +update diff --git a/devscripts/mk-git-aliases b/devscripts/mk-git-aliases new file mode 100755 index 0000000..1891c89 --- /dev/null +++ b/devscripts/mk-git-aliases @@ -0,0 +1,9 @@ +#!/bin/sh + +git config --local alias.commit-with-message \ + "!GIT_EDITOR='vim -c \"source devscripts/get-commit-message.vim\"' \ + exec git commit -v" + +exec git config --local alias.tag-with-message \ + "!GIT_EDITOR='vim -c \"source devscripts/get-commit-message.vim\"' \ + exec git tag -s \`python setup.py --version\`"