From: Phil Muldoon <pmuldoon@redhat.com>
To: gdb@sourceware.org
Subject: ARI/Commit rules
Date: Wed, 15 Jun 2011 11:56:00 -0000 [thread overview]
Message-ID: <m3aadjz4u5.fsf@redhat.com> (raw)
I was writing a patch today, and I once again arrived at the: "Should I
use X or Y for this operation" dilemma. There are a lot of unwritten
rules about programming usage in GDB (See ARI mails), and sometimes
maintainers don't catch them. This is inevitable with a project this
size and age. I have come to fear the post-commit ARI warnings ;)
This lead me to think, is it possible to distil this post-commit hook
script to a user installable script somewhere? If GDB used git as the
primary repository we could just make it a pre-commit hook, and a user
script would not be needed. But as GDB uses CVS I do not think
this is possible.
This would help ease the reviewing load. We could put a link to the
script in the contributors guide, and a "RUN THIS FIRST" preamble.
Also we could perhaps encode some formatting rules in there as well.
Blank line after variable decl, two spaces after a period, space
in-between function and brackets, etc etc. These nits always trip me up.
What do you think?
Cheers
Phil
next reply other threads:[~2011-06-15 11:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 11:56 Phil Muldoon [this message]
2011-06-15 15:25 ` Joel Brobecker
2011-06-15 15:37 ` Phil Muldoon
2011-06-15 15:47 ` Joel Brobecker
2011-06-15 16:39 ` Pedro Alves
2011-06-15 16:48 ` Joel Brobecker
2011-06-15 17:00 ` Pedro Alves
2011-06-15 18:03 ` Alfred M. Szmidt
2011-06-16 11:45 ` Pierre Muller
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=m3aadjz4u5.fsf@redhat.com \
--to=pmuldoon@redhat.com \
--cc=gdb@sourceware.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