public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Proper commit messages
@ 2005-08-08 20:44 Ciaran McCreesh
  2005-08-09 11:36 ` Markus Rothe
  0 siblings, 1 reply; 21+ messages in thread
From: Ciaran McCreesh @ 2005-08-08 20:44 UTC (permalink / raw
  To: gentoo-dev

[-- 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 --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2005-08-16  1:37 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 20:44 [gentoo-dev] Proper commit messages Ciaran McCreesh
2005-08-09 11:36 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox