From f96e45db97dd9b6bbd39d55a3758e99b2fad50f6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 2 Aug 2024 13:44:15 +0300 Subject: [PATCH] Build: Add `devscripts` --- devscripts/README.html | 3 +++ devscripts/get-commit-message.vim | 9 +++++++++ devscripts/mk-git-aliases | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100644 devscripts/README.html create mode 100644 devscripts/get-commit-message.vim create mode 100755 devscripts/mk-git-aliases 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\`" -- 2.39.5