From: Ciaran McCreesh <ciaranm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Proper commit messages
Date: Mon, 8 Aug 2005 21:44:50 +0100 [thread overview]
Message-ID: <20050808214450.2bcc6a34@snowdrop.home> (raw)
[-- Attachment #1: Type: text/plain, Size: 2782 bytes --]
Well, you'd think that doing main tree CVS commit messages would be
something that everyone could do properly without being told, but sadly
this doesn't seem to be the case. Soooo...
Believe it or not, commit messages are not just something that you type
in to keep a computer happy. These messages are also read by QA and arch
people.
If you're not a QA or arch person, and you don't consider spending a few
moments to make life easier for those people to be sufficient reason,
you might want to consider that repeated ``cvs diff`` runs will hit the
CVS server far more than one ``cvs log``.
If you're the sort that writes good ChangeLog messages anyway, there's
nothing wrong with reusing them as the commit message. If you have a
really really good reason for not using a ChangeLog message, or if you
haven't yet written a shell alias for reusing ChangeLog messages for
commits, you still need to come up with something for the commit
message.
Your commit message should explain what specifically you changed and, if
relevant, why. You don't need to write an essay or even a complete
sentence (ChangeLog messages, however, *are* required to be in 'proper'
English), so long as it is easily understandable and (preferably)
greppable. Examples, all of which are based upon real messages:
BAD: Changed keywords
GOOD: Added ~x86 keyword
BAD: Stable
GOOD: Stable on x86, sparc, mips
BAD: Fix stuff
GOOD: Fix USE=foo logic error
BAD: .
GOOD: Purge old ebuilds
BAD: Vérifiez que le frozbinateur n'est pas cassé.
GOOD: Added a check for broken frozbinator.
BAD: Who the fuck reads these anyway?
GOOD: Version bump.
Whilst I'm at it, I might as well comment on some things that are useful
in ChangeLogs that don't always get done properly:
* Any relevant bug numbers, formatted like "bug #20600". The # is
important, it's used by various things (eg packages.g.o) that
automagically add links to text.
* What that patch you're adding actually does.
* The archs you're working with when keywording. "Marked stable" is a
nuisance for arch people, even if there was only one keyword in the
ebuild at the time. "Stable on all archs" isn't generally any better
(and should you really be stabling on all archs?) -- do you mean
"all", or "all the ones that are currently keyworded"? A list like
"x86 sparc mips" is much more useful.
This rant was not inspired by someone committing a bunch of things with
one character (and a punctuation character at that) commit messages
despite repeatedly having been asked not to. Honest.
--
Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
Mail : ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2005-08-08 20:49 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-08 20:44 Ciaran McCreesh [this message]
2005-08-09 11:36 ` [gentoo-dev] Proper commit messages Markus Rothe
2005-08-09 11:55 ` Simon Stelling
2005-08-09 12:40 ` Diego 'Flameeyes' Pettenò
2005-08-09 12:04 ` Stephen Bennett
2005-08-09 12:23 ` Markus Rothe
2005-08-09 12:47 ` Ciaran McCreesh
2005-08-09 12:59 ` Markus Rothe
2005-08-09 19:07 ` Jonathan Smith
2005-08-09 19:22 ` Ciaran McCreesh
2005-08-09 20:56 ` Henrik Brix Andersen
2005-08-09 22:54 ` Tuan Van
2005-08-09 23:31 ` [gentoo-dev] " Arnaud Launay
2005-08-09 23:38 ` LostSon
2005-08-09 23:40 ` Ciaran McCreesh
2005-08-09 23:48 ` Mike Frysinger
2005-08-10 8:03 ` Alin Nastac
2005-08-10 21:46 ` Dice R. Random
2005-08-11 16:16 ` Drake Wyrm
2005-08-09 23:47 ` Mike Frysinger
2005-08-15 14:03 ` [gentoo-dev] " Aron Griffis
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=20050808214450.2bcc6a34@snowdrop.home \
--to=ciaranm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox