docs: update howto-contribute.txt
This patch does not change any wording or grammar. It only shuffles the order of things and adds a table of contents. For example: it moves coding related bullet points into the Coding Style Chapter; it groups email related Chapters together, and so fourth. Signed-off-by: J William Piggott <elseifthen@gmx.com>
This commit is contained in:
parent
888d5e0ed6
commit
0928ca2b59
|
@ -1,8 +1,33 @@
|
|||
Patches
|
||||
CONTENTS
|
||||
Sending Patches
|
||||
Patching Process
|
||||
Email Format
|
||||
Coding Style
|
||||
Various Notes
|
||||
Standards Compliance
|
||||
IRC Channel
|
||||
|
||||
Sending Patches
|
||||
|
||||
* send your patches to the mailing list or to the project maintainer.
|
||||
See ../README.
|
||||
|
||||
* email is accepted as an inline patch with, or without, a git pull
|
||||
request. Pull request emails need to include the patch set for review
|
||||
purposes. See howto-pull-request.txt and source-code-management.txt
|
||||
for git repository instructions.
|
||||
|
||||
* email attachments are difficult to review and not recommended.
|
||||
Hint: use git send-email.
|
||||
|
||||
* one patch per email.
|
||||
See Email Format.
|
||||
|
||||
* many small patches are preferred over a single large patch. Split
|
||||
patch sets based upon logical functionality. For example: #endif mark
|
||||
ups, compiler warnings, and exit code fixes should all be individual
|
||||
small patches.
|
||||
|
||||
* don't include generated (autotools) files in your patches.
|
||||
Hint: use 'git clean -Xd'.
|
||||
|
||||
|
@ -10,21 +35,39 @@ Patches
|
|||
Packages like RPMs, DEBs, and the rest, are not provided. They should
|
||||
be available from the distribution.
|
||||
|
||||
* email is accepted as an inline patch with, or without, a git pull
|
||||
request. Pull request emails need to include the patch set for review
|
||||
purposes. See howto-pull-request.txt and source-code-management.txt
|
||||
for git repository instructions.
|
||||
Patching Process
|
||||
|
||||
* one patch per email.
|
||||
See Email Format.
|
||||
* announce it on the mailing list when you are going to work with some
|
||||
particular piece of code for a long time. This helps others to avoid
|
||||
massive merge conflicts. Small or quick work, does not need to be
|
||||
announced.
|
||||
|
||||
* email attachments are difficult to review and not recommended.
|
||||
Hint: use 'git send-email'.
|
||||
* make sure that after applying your patch the file(s) will compile
|
||||
without errors.
|
||||
|
||||
* many small patches are preferred over a single large patch. Split
|
||||
patch sets based upon logical functionality. For example: #endif mark
|
||||
ups, compiler warnings, and exit code fixes should all be individual
|
||||
small patches.
|
||||
* test that the previously existing program behavior is not altered. If
|
||||
the patch intentionally alters the behavior explain what changed, and
|
||||
the reason for it, in the changelog/commit message.
|
||||
|
||||
* only submit changes that you believe are ready to merge. To post a
|
||||
patch for peer review only, state it clearly in the email and use
|
||||
the Subject: [PATCH RFC] ...
|
||||
|
||||
* incorporate reviewer comments in the patches. Resubmitting without
|
||||
changes is neither recommended nor polite.
|
||||
|
||||
* resubmission can be partial or complete. If only a few alterations are
|
||||
needed then resubmit those particular patches. When comments cause a
|
||||
greater effect then resubmit the entire patch set.
|
||||
|
||||
* When resubmitting use the email Subject: [PATCH v2] ...
|
||||
Hint: use the --subject-prefix='PATCH v2' option with 'git format-patch'
|
||||
|
||||
* using a git repository for (re)submissions can make life easier.
|
||||
See howto-pull-request.txt and source-code-management.txt.
|
||||
|
||||
* all patch submissions are either commented, rejected, or accepted.
|
||||
If the maintainer rejects a patch set it is pointless to resubmit it.
|
||||
|
||||
Email Format
|
||||
|
||||
|
@ -82,16 +125,7 @@ Email Format
|
|||
|
||||
* Followed by the unified diff patch.
|
||||
|
||||
Before sending a patch
|
||||
|
||||
* make sure that after applying your patch the file(s) will compile
|
||||
without errors.
|
||||
|
||||
* test that the previously existing program behavior is not altered. If
|
||||
the patch intentionally alters the behavior explain what changed, and
|
||||
the reason for it, in the changelog/commit message.
|
||||
|
||||
Coding style
|
||||
Coding Style
|
||||
|
||||
* the preferred coding style is based on the linux kernel coding-style.
|
||||
Available here:
|
||||
|
@ -102,41 +136,6 @@ Coding style
|
|||
that something is not quite right, and you are unwilling to fix the
|
||||
issue in the submitted change.
|
||||
|
||||
Patching process
|
||||
|
||||
* announce it on the mailing list when you are going to work with some
|
||||
particular piece of code for a long time. This helps others to avoid
|
||||
massive merge conflicts. Small or quick work, does not need to be
|
||||
announced.
|
||||
|
||||
* only submit changes that you believe are ready to merge. To post a
|
||||
patch for peer review only, state it clearly in the email and use
|
||||
the Subject: [PATCH RFC] ...
|
||||
|
||||
* incorporate reviewer comments in the patches. Resubmitting without
|
||||
changes is neither recommended nor polite.
|
||||
|
||||
* resubmission can be partial or complete. If only a few alterations are
|
||||
needed then resubmit those particular patches. When comments cause a
|
||||
greater effect then resubmit the entire patch set.
|
||||
|
||||
* When resubmitting use the email Subject: [PATCH v2] ...
|
||||
Hint: use the --subject-prefix='PATCH v2' option with 'git format-patch'
|
||||
|
||||
* using a git repository for (re)submissions can make life easier.
|
||||
See howto-pull-request.txt and source-code-management.txt.
|
||||
|
||||
* all patch submissions are either commented, rejected, or accepted.
|
||||
If the maintainer rejects a patch set it is pointless to resubmit it.
|
||||
|
||||
Various notes
|
||||
|
||||
* util-linux does not use kernel headers for file system super
|
||||
blocks structures.
|
||||
|
||||
* patches relying on kernel features that are not in Linus Torvalds's
|
||||
tree are not accepted.
|
||||
|
||||
* do not use `else' after non-returning functions. For
|
||||
example:
|
||||
|
||||
|
@ -155,7 +154,15 @@ Various notes
|
|||
multiple lines. In case the shorthand does not look good on one line
|
||||
use the normal "if () else" syntax.
|
||||
|
||||
Standards compliance
|
||||
Various Notes
|
||||
|
||||
* util-linux does not use kernel headers for file system super
|
||||
blocks structures.
|
||||
|
||||
* patches relying on kernel features that are not in Linus Torvalds's
|
||||
tree are not accepted.
|
||||
|
||||
Standards Compliance
|
||||
|
||||
Some of the commands maintained in this package have Open Group
|
||||
requirements. These commands are:
|
||||
|
@ -183,7 +190,7 @@ Standards compliance
|
|||
|
||||
http://pubs.opengroup.org/onlinepubs/7908799/xcuix.html
|
||||
|
||||
IRC channel
|
||||
IRC Channel
|
||||
|
||||
* #util-linux at freenode.net:
|
||||
|
||||
|
|
Loading…
Reference in New Issue