2008-01-06 16:14:18 -06:00
|
|
|
Pacman - Submitting Patches
|
|
|
|
===========================
|
2007-01-02 23:48:36 +00:00
|
|
|
|
|
|
|
This document is here mainly to make my job easier, and is more of a guideline,
|
|
|
|
and not a strict set of rules. Please try to follow as much as you can.
|
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
NOTE: Some of this is paraphrased from the kernel documentation's
|
2007-01-02 23:48:36 +00:00
|
|
|
"SubmittingPatches" file.
|
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
Creating your patch
|
|
|
|
-------------------
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
Patches need to be submitted in GIT format. So for getting started, you will
|
|
|
|
have to read some git guides first, to learn how to fetch pacman git repo, how
|
|
|
|
to configure your name and email adress, how to create a branch, a commit, and
|
|
|
|
finally your patch.
|
2007-07-01 23:27:20 -04:00
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
--
|
2008-07-27 17:45:52 +02:00
|
|
|
* use git commit -s for creating a commit of your changes.
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
The -s allows you to credit yourself by adding a "Signed Off By" line to
|
|
|
|
indicate who has "signed" the patch - who has approved it.
|
|
|
|
|
|
|
|
Signed-off-by: Aaron Griffin <aaron@archlinux.org>
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
Please use your real name and email address. Feel free to "scramble" the
|
|
|
|
address if you're afraid of spam.
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
* Describe your patch.
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
It helps if you describe the changes of the patch in the git commit log.
|
|
|
|
This allows others to see what you intended so as to compare it to
|
|
|
|
what was actually done, and allows better feedback.
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
* Use git format-patch to create patches.
|
|
|
|
|
|
|
|
Your commit message will be shown above the patch by default when you will use
|
|
|
|
`git-format-patch`, including the signoff line.
|
2008-01-06 16:14:18 -06:00
|
|
|
--
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
Submitting your patch
|
|
|
|
---------------------
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
--
|
2007-01-03 05:45:29 +00:00
|
|
|
* Send the patch to the pacman-dev mailing list
|
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
The mailing list is the primary queue for review and acceptance. Here you
|
2008-07-27 17:45:52 +02:00
|
|
|
will get feedback, and let me know the details of your patch.
|
2007-01-03 05:45:29 +00:00
|
|
|
|
2007-01-02 23:48:36 +00:00
|
|
|
* No MIME, no links, no compression, no attachments. Just plain text.
|
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
Patches should be contained in the actual body of the email. There are many
|
|
|
|
reasons for this. Firstly, it makes them easier to read with any mail reader,
|
|
|
|
it allows easier review "at a glance", and most importantly, it allows people
|
|
|
|
to comment on exact lines of the patch in reply emails.
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-07-27 17:45:52 +02:00
|
|
|
git send-email allows you to send git formatted patches in plain text easily.
|
2007-01-03 05:45:29 +00:00
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
--
|
|
|
|
|
|
|
|
After you submit
|
|
|
|
----------------
|
2007-01-03 05:45:29 +00:00
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
--
|
2007-01-03 05:45:29 +00:00
|
|
|
* Don't get discouraged
|
2007-01-02 23:48:36 +00:00
|
|
|
|
2008-01-06 16:14:18 -06:00
|
|
|
Any feedback you get, positive or negative, has nothing to do with you. If a
|
|
|
|
patch is rejected, try taking the suggestions into account and re-submitting.
|
|
|
|
We welcome most submissions here, and some may take a bit longer to get
|
|
|
|
looked over than others. If you think your patch got lost in the shuffle,
|
|
|
|
send another email to the list in reply to the original asking if anyone has
|
|
|
|
looked at it yet.
|
|
|
|
--
|
|
|
|
|
|
|
|
/////
|
|
|
|
vim: set ts=2 sw=2 syntax=asciidoc et:
|
|
|
|
/////
|