annotate DOCS/tech/patches.txt @ 12419:3a6e4fff88e3

Hint at diff options useful for avoiding cosmetic changes, patch by Reimar.
author diego
date Tue, 04 May 2004 14:50:16 +0000
parents ac3c866f159b
children 0d9dec871b83
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2121
95b8a1e7962d sending patches
arpi
parents:
diff changeset
1 Sending patches:
95b8a1e7962d sending patches
arpi
parents:
diff changeset
2 ~~~~~~~~~~~~~~~~
95b8a1e7962d sending patches
arpi
parents:
diff changeset
3
7645
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
4 Note: We know our rules place a burden on you, but rest assured that
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
5 maintaining a big and complex software project is even harder, so please
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
6 accept our rules. We cannot afford to spend our time fixing buggy, broken or
12218
52de6cbd0842 Patches should not be compressed.
diego
parents: 12106
diff changeset
7 outdated patches. The closer you follow our rules the higher is the probability
52de6cbd0842 Patches should not be compressed.
diego
parents: 12106
diff changeset
8 that your patch will be included.
7645
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
9
11191
ed5969812ff3 Explain why sending complete files is a bad idea.
diego
parents: 10943
diff changeset
10 0. Do not send complete files. These need to be diffed by hand to see the
ed5969812ff3 Explain why sending complete files is a bad idea.
diego
parents: 10943
diff changeset
11 changes, which makes reviews harder and less likely to occur. Besides as
11196
0750ab856742 More precise wording inspired by michaelni.
diego
parents: 11191
diff changeset
12 soon as one of the files changes, your version becomes harder to apply,
0750ab856742 More precise wording inspired by michaelni.
diego
parents: 11191
diff changeset
13 thus reducing its chances of being accepted.
11191
ed5969812ff3 Explain why sending complete files is a bad idea.
diego
parents: 10943
diff changeset
14
7645
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
15 1. Always make patches for the CVS version. The README describes how to check
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
16 out CVS and daily CVS snapshots are available from our download page.
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
17 We do not accept patches for releases or outdated CVS versions.
2121
95b8a1e7962d sending patches
arpi
parents:
diff changeset
18
9816
61ba1af7d87b Explain the need for unified diffs.
diego
parents: 8556
diff changeset
19 2. Make unified diffs ('diff -Naur' or 'cvs diff -u'). Unified diffs can easily
61ba1af7d87b Explain the need for unified diffs.
diego
parents: 8556
diff changeset
20 be applied with 'patch'. This is much harder with other diff types.
2121
95b8a1e7962d sending patches
arpi
parents:
diff changeset
21
6101
ff80fbfa06f5 corrections by Diego Biurrun <diego@biurrun.de>
jaf
parents: 4202
diff changeset
22 3. Test the functionality of your patch. We'll *refuse* it if it breaks
2121
95b8a1e7962d sending patches
arpi
parents:
diff changeset
23 something, even if it extends other features!
95b8a1e7962d sending patches
arpi
parents:
diff changeset
24
6101
ff80fbfa06f5 corrections by Diego Biurrun <diego@biurrun.de>
jaf
parents: 4202
diff changeset
25 4. Read your patch. We'll *refuse* it if it changes indentation of the
ff80fbfa06f5 corrections by Diego Biurrun <diego@biurrun.de>
jaf
parents: 4202
diff changeset
26 code or if it does tab/space conversion or other cosmetical changes!
2121
95b8a1e7962d sending patches
arpi
parents:
diff changeset
27
12419
3a6e4fff88e3 Hint at diff options useful for avoiding cosmetic changes, patch by Reimar.
diego
parents: 12251
diff changeset
28 NOTE: If you alread wrote some code and did cosmetic changes, you can use
3a6e4fff88e3 Hint at diff options useful for avoiding cosmetic changes, patch by Reimar.
diego
parents: 12251
diff changeset
29 'diff -uwbBE' to help you remove them. Don't forget to check the patch
3a6e4fff88e3 Hint at diff options useful for avoiding cosmetic changes, patch by Reimar.
diego
parents: 12251
diff changeset
30 to make sure diff didn't ignore some important change and remove any
3a6e4fff88e3 Hint at diff options useful for avoiding cosmetic changes, patch by Reimar.
diego
parents: 12251
diff changeset
31 remaining cosmetics!
3a6e4fff88e3 Hint at diff options useful for avoiding cosmetic changes, patch by Reimar.
diego
parents: 12251
diff changeset
32
6101
ff80fbfa06f5 corrections by Diego Biurrun <diego@biurrun.de>
jaf
parents: 4202
diff changeset
33 5. Comment parts that really need it (tricky side-effects etc).
ff80fbfa06f5 corrections by Diego Biurrun <diego@biurrun.de>
jaf
parents: 4202
diff changeset
34 Commenting trivial code not required. Comments must be English!
8556
ecff1745d189 Document things from the start.
diego
parents: 8432
diff changeset
35
ecff1745d189 Document things from the start.
diego
parents: 8432
diff changeset
36 6. If you implement new features, add or change command line switches or modify
ecff1745d189 Document things from the start.
diego
parents: 8432
diff changeset
37 the behavior of existing features, please do not forget to also update the
ecff1745d189 Document things from the start.
diego
parents: 8432
diff changeset
38 documentation. The documentation maintainers will assist you in doing this.
10943
3a76cfb44e12 Comment about translations added.
diego
parents: 9816
diff changeset
39 Updating the English documentation is enough. If you speak several languages
12251
ac3c866f159b cosmetics, wording update
diego
parents: 12218
diff changeset
40 you are of course welcome to update some of the translations as well.
12106
a79d9b3a83fd cosmetics
diego
parents: 11459
diff changeset
41
8556
ecff1745d189 Document things from the start.
diego
parents: 8432
diff changeset
42 7. Send your patch to the mplayer-dev-eng mailing list as a base64-encoded
7645
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
43 attachment (use gzip or bzip2 *only* if it's bigger than 80k or if you know
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
44 that your mailer messes up (reformats) text attachments) with the subject
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
45 line: '[PATCH] very short description of the patch'.
6101
ff80fbfa06f5 corrections by Diego Biurrun <diego@biurrun.de>
jaf
parents: 4202
diff changeset
46 In the mail, describe in a few sentences what you change and why.
4202
408302343afe mail formatting added
arpi
parents: 2121
diff changeset
47 If you made independent changes, try to send them as separate patches.
7153
56cef6e35f51 Explain why putting [PATCH] in the subject is important.
diego
parents: 6101
diff changeset
48 The subject line is very important if you do not want your patch to get
56cef6e35f51 Explain why putting [PATCH] in the subject is important.
diego
parents: 6101
diff changeset
49 lost in the noise. We need the uppercase [PATCH] to be able to search
56cef6e35f51 Explain why putting [PATCH] in the subject is important.
diego
parents: 6101
diff changeset
50 for unapplied patches, so please use it.
7645
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
51 You have to subscribe to mplayer-dev-eng since we blocked postings from
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
52 non-subscribers after spam problems and because patches get reviewed by the
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
53 developers on the list. We want you to be available for discussing your
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
54 code, you might be asked to make modifications before we accept it. Don't
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
55 worry, mplayer-dev-eng is not high traffic and you can subscribe with the
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
56 nomail option if you do not wish to receive all the mails.
2121
95b8a1e7962d sending patches
arpi
parents:
diff changeset
57
8556
ecff1745d189 Document things from the start.
diego
parents: 8432
diff changeset
58 8. Give us a few days to react. We try to review patches as fast as possible,
8432
7b6b7fb76965 small updates
diego
parents: 7645
diff changeset
59 but unfortunately we are constantly overloaded with work, be it MPlayer
7b6b7fb76965 small updates
diego
parents: 7645
diff changeset
60 related or from our day to day lives. If your patch seems to be ignored,
7b6b7fb76965 small updates
diego
parents: 7645
diff changeset
61 please resend it and mention that you got ignored. We are interested in your
7b6b7fb76965 small updates
diego
parents: 7645
diff changeset
62 work and will eventually either accept it or reject it with an explanation
7b6b7fb76965 small updates
diego
parents: 7645
diff changeset
63 what and why we disliked about your patch.
7b6b7fb76965 small updates
diego
parents: 7645
diff changeset
64
8556
ecff1745d189 Document things from the start.
diego
parents: 8432
diff changeset
65 9. Do not immediately ask for CVS write access. If you contributed one or more
7645
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
66 nice, acceptable patches and they need maintaining or you want to be an
534b9b6f6557 Some further explanations, dev-eng is now subscribers only.
diego
parents: 7153
diff changeset
67 MPlayer developer, you'll get CVS write access.
11283
10e0ad4f21b6 _ vs - in option names
diego
parents: 11196
diff changeset
68
10e0ad4f21b6 _ vs - in option names
diego
parents: 11196
diff changeset
69 10. For consistency reasons all option names must use '-' instead of '_'.
11459
74e69aef2406 Contributors should also patch AUTHORS if they wish to appear there.
diego
parents: 11283
diff changeset
70
74e69aef2406 Contributors should also patch AUTHORS if they wish to appear there.
diego
parents: 11283
diff changeset
71 11. If you made a nontrivial contribution and wish to be mentioned in the
74e69aef2406 Contributors should also patch AUTHORS if they wish to appear there.
diego
parents: 11283
diff changeset
72 AUTHORS file, include that in your patch.
12106
a79d9b3a83fd cosmetics
diego
parents: 11459
diff changeset
73
12218
52de6cbd0842 Patches should not be compressed.
diego
parents: 12106
diff changeset
74 12. Do not compress your patch unless it is very large. It only makes handling
52de6cbd0842 Patches should not be compressed.
diego
parents: 12106
diff changeset
75 the patch more difficult.
52de6cbd0842 Patches should not be compressed.
diego
parents: 12106
diff changeset
76
2121
95b8a1e7962d sending patches
arpi
parents:
diff changeset
77 Thank you!