From: Konstantin Kharlamov <hi-angel@yandex.ru>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 35368@debbugs.gnu.org
Subject: bug#35368: Acknowledgement ([PATCH] Do potentially destructive operations in prepare-commit-msg)
Date: Tue, 23 Apr 2019 14:00:05 +0300 [thread overview]
Message-ID: <1556017205.24472.1@yandex.ru> (raw)
In-Reply-To: <875zr5f1dn.fsf@tcd.ie>
On Вт, Apr 23, 2019 at 11:43, Basil L. Contovounesios
<contovob@tcd.ie> wrote:
> Konstantin Kharlamov <hi-angel@yandex.ru> writes:
>
>> Oh, and while on it: I'm thinking also about automatically filling
>> the default
>> commit template (i.e. files changed, functions changed — can be
>> inferred for C).
>> I'm wondering, which language would it be acceptable to write hook
>> in? Python?
>
> Why not Elisp? IIUC this already exists as add-change-log-entry.
Ok, cool, thanks folks! Yeah, then I'll probably take a look at it.
Btw, somewhat related: if anybody interested, I can share a bit of
config: as I figured, many projects (not Emacs though) require to start
commit message with subsystem they changed, which is often the last
directory name. So some hours ago I made up a global prepare-commit-msg
hook that automatically inserts name of the directory
https://github.com/Hi-Angel/dotfiles/blob/master/.git_hooks/prepare-commit-msg
(initially I wrote it in sh, but code was too awkward, so I rewrote it
in Python). To make it work globally write in `core` section of
~/.gitconfig the `hooksPath = "~/.git_hooks`
prev parent reply other threads:[~2019-04-23 11:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-21 20:03 bug#35368: [PATCH] Do potentially destructive operations in prepare-commit-msg Konstantin Kharlamov
2019-04-21 20:17 ` bug#35368: [PATCH v2] " Konstantin Kharlamov
2019-05-14 17:33 ` npostavs
2019-05-14 21:22 ` Konstantin Kharlamov
2019-05-14 22:09 ` Noam Postavsky
2019-05-14 22:15 ` Konstantin Kharlamov
2019-05-14 22:26 ` bug#35368: [PATCH v3] " Konstantin Kharlamov
2019-05-15 17:40 ` npostavs
2019-05-15 21:25 ` bug#35368: [PATCH v4] " Konstantin Kharlamov
2019-05-17 0:35 ` Noam Postavsky
2019-05-17 0:39 ` Konstantin Kharlamov
2019-05-15 21:28 ` bug#35368: [PATCH v3] " Konstantin Kharlamov
[not found] ` <handler.35368.B.155587702222113.ack@debbugs.gnu.org>
2019-04-23 9:57 ` bug#35368: Acknowledgement ([PATCH] Do potentially destructive operations in prepare-commit-msg) Konstantin Kharlamov
2019-04-23 10:40 ` Eli Zaretskii
2019-04-23 10:43 ` Basil L. Contovounesios
2019-04-23 11:00 ` Konstantin Kharlamov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1556017205.24472.1@yandex.ru \
--to=hi-angel@yandex.ru \
--cc=35368@debbugs.gnu.org \
--cc=contovob@tcd.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.