public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/netifrc:master commit in: /
Date: Sat, 24 Aug 2013 01:04:37 +0000 (UTC)	[thread overview]
Message-ID: <1377305469.edfdd06aeecc784104e6eeba6ab227cae49c40d7.robbat2@OpenRC> (raw)

commit:     edfdd06aeecc784104e6eeba6ab227cae49c40d7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 24 00:39:27 2013 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Aug 24 00:51:09 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=edfdd06a

We are sticking to the OpenRC style guide.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

---
 STYLE | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)

diff --git a/STYLE b/STYLE
new file mode 100644
index 0000000..666ad28
--- /dev/null
+++ b/STYLE
@@ -0,0 +1,89 @@
+This STYLE file taken directly from OpenRC, and based on the heritage of
+netifrc, we are sticking to it.
+
+==== Original file beyond this point.
+This is the openrc style manual.  It governs the coding style of all code
+in this repository.  Follow it.  Contact openrc@gentoo.org for any questions
+or fixes you might notice.
+
+##########
+# C CODE #
+##########
+
+The BSD Kernel Normal Form (KNF) style is used:
+	http://en.wikipedia.org/wiki/Indent_style#BSD_KNF_style
+Basically, it's like K&R/LKML, but wrapped lines that are indented use 4 spaces.
+
+Highlights:
+	- no trailing whitespace
+	- indented code use tabs (not line wrapped)
+	- cuddle the braces (except for functions)
+	- space after native statements and before paren (for/if/while/...)
+	- no space between function and paren
+	- pointer asterisk cuddles the variable, not the type
+
+void foo(int c)
+{
+	int ret = 0;
+
+	if (c > 1000)
+		return;
+
+	while (c--) {
+		bar(c);
+		ret++;
+	}
+
+	return ret;
+}
+
+##################
+# COMMIT MESSAGES #
+##################
+
+The following is an example of a correctly formatted git commit message
+for this repository. Most of this information came from this blog post
+[1], so I would like to thank the author.
+
+### cut here ###
+Capitalized, short (50 chars or less) summary
+
+More detailed explanatory text, if necessary.  Wrap it to about 72
+characters or so.  In some contexts, the first line is treated as the
+subject of an email and the rest of the text as the body.  The blank
+line separating the summary from the body is critical (unless you omit
+the body entirely); tools like rebase can get confused if you run the
+two together.
+
+Write your commit message in the imperative: "Fix bug" and not "Fixed
+bug."  This convention matches up with commit messages generated by
+commands like git merge and git revert.
+
+Further paragraphs come after blank lines.
+
+- Bullet points are okay, too
+
+- Typically a hyphen or asterisk is used for the bullet, preceded by a
+  single space, with blank lines in between, but conventions vary here
+
+- Use a hanging indent
+
+Reported-by: User Name <email>
+X-[Distro]-Bug: BugID
+X-[Distro]-Bug-URL: URL for the bug (on the distribution's web site typically)
+### cut here ###
+
+If you did not write the code and the patch does not include authorship
+information in a format git can use, please use the --author option of the
+git commit command to make the authorship correct.
+
+The Reported-by tag is required if the person who reported the bug is
+different from the author and committer.
+
+  The X-[Distro]-Bug/Bug-URL tags are required if this commit is related
+  to a bug reported to us by a specific distribution   of linux or a
+  *BSD. Also, [Distro] should be replaced with the name of the
+  distribution, e.g. X-Gentoo-Bug.
+
+[1] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
+


             reply	other threads:[~2013-08-24  1:04 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-24  1:04 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-29  0:28 [gentoo-commits] proj/netifrc:master commit in: / Sam James
2024-09-23 12:02 Sam James
2024-09-23 11:58 Sam James
2023-10-20  0:20 Sam James
2023-09-10 15:18 Sam James
2023-05-29  0:17 Mike Gilbert
2023-04-17  4:37 Sam James
2021-04-05 20:02 Robin H. Johnson
2021-04-05 20:00 Robin H. Johnson
2021-02-10 13:08 Lars Wendler
2021-01-05 18:19 Robin H. Johnson
2020-01-04  8:09 Robin H. Johnson
2019-04-21  4:18 Robin H. Johnson
2019-04-21  4:17 Robin H. Johnson
2019-04-21  4:12 Robin H. Johnson
2018-07-10 21:42 Jason Donenfeld
2017-11-27 20:27 Robin H. Johnson
2017-10-21 20:56 Robin H. Johnson
2017-06-14 20:24 Robin H. Johnson
2017-06-09 23:55 Robin H. Johnson
2017-01-27 21:54 Robin H. Johnson
2016-10-27  1:23 Robin H. Johnson
2016-10-24 23:16 Robin H. Johnson
2016-10-24 23:16 Robin H. Johnson
2016-10-24 20:51 Robin H. Johnson
2016-07-19 19:59 Robin H. Johnson
2016-07-05 18:23 Robin H. Johnson
2016-07-05 18:14 Robin H. Johnson
2016-07-05 18:13 Robin H. Johnson
2015-11-08 14:33 Robin H. Johnson
2015-11-08 14:33 Robin H. Johnson
2015-11-08 14:30 Robin H. Johnson
2015-11-08 14:30 Robin H. Johnson
2015-05-25 10:04 Mike Frysinger
2015-05-25 10:04 Mike Frysinger
2015-05-25 10:04 Mike Frysinger
2015-05-25 10:01 Mike Frysinger
2015-01-22 23:10 Robin H. Johnson
2015-01-22 23:01 Robin H. Johnson
2015-01-22 23:01 Robin H. Johnson
2015-01-22 23:01 Robin H. Johnson
2015-01-16 18:16 Robin H. Johnson
2015-01-09 17:19 Robin H. Johnson
2015-01-09 17:17 Robin H. Johnson
2014-12-11 18:13 Robin H. Johnson
2014-07-17 17:56 Robin H. Johnson
2014-04-15 18:20 Robin H. Johnson
2014-03-07 17:37 Robin H. Johnson
2014-03-05 18:40 Robin H. Johnson
2014-03-04 18:45 Robin H. Johnson
2013-08-28 17:01 Robin H. Johnson
2013-08-25  8:17 Robin H. Johnson
2013-08-24  1:19 Robin H. Johnson
2013-08-24  1:19 Robin H. Johnson
2013-08-24  1:19 Robin H. Johnson
2013-08-24  1:04 Robin H. Johnson
2013-08-24  1:04 Robin H. Johnson
2013-08-24  1:04 Robin H. Johnson

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=1377305469.edfdd06aeecc784104e6eeba6ab227cae49c40d7.robbat2@OpenRC \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.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