[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Aside] Generating commit messages for Org
From: |
Robert Pluim |
Subject: |
Re: [Aside] Generating commit messages for Org |
Date: |
Fri, 26 Nov 2021 11:21:32 +0100 |
>>>>> On Sun, 21 Nov 2021 04:27:45 +0800, Timothy <tecosaur@gmail.com> said:
Timothy> Hi All,
Timothy> A few hours ago I noticed that I’ve made a few very minor mistakes
in some of my
Timothy> recent commit messages for Org. Realistically I don’t think I’m
going to stop
Timothy> making occasional mistake any time soon, eve if they do become
rarer. So, I’ve
Timothy> whipped up a magit hook that looks at the diff and fills in a
/correct/ skeleton
Timothy> in the commit message buffer.
Timothy> For example, here’s what I get if a queue a few of my currently
unstaged changes
Timothy> ┌────
Timothy> │ * lisp/org.el (org-place-formula-image, org-format-latex):
Timothy> │
Timothy> │ * lisp/org-macs.el (org-compile-file, org-async-queue):
Timothy> └────
Timothy> This currently works with elisp functions/variables/etc. and
headings from
Timothy> documentation files. I’m sure it has a few rough edges, but it’s
looking
Timothy> promising so far.
I suggest you look at `add-change-log-entry-other-window' and/or
`magit-generate-changelog'.
Robert
--