3 - Make small logical changes.
4 - Provide a meaningful commit message.
6 - Review and follow the Eclipse Due Diligence Process
8 http://www.eclipse.org/legal/EclipseLegalProcessPoster.pdf
10 - Submit patch as an attachment to eclipse.org via bugzilla:
12 https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit
17 I wanted a file describing how to submit patches for EGit,
18 so I started with the one found in the core Git distribution
19 (Documentation/SubmittingPatches), which itself was based on the
20 patch submission guidelines for the Linux kernel.
22 However there are quite a few differences, so please review and
23 familiarize yourself with the following relevant bits:
26 (1) Make separate commits for logically separate changes.
28 Unless your patch is really trivial, you should not be sending
29 out a patch that was generated between your working tree and your
30 commit head. Instead, always make a commit with complete commit
31 message and generate a series of patches from your repository.
32 It is a good discipline.
34 Describe the technical detail of the change(s).
36 If your description starts to get too long, that's a sign that you
37 probably need to split up your commit to finer grained pieces.
39 I am very picky about formatting. Make sure your final version
40 of every file was formatted using the Eclipse code formatter
41 using the project specific settings (Properties->Java Code
42 Style->Formatter->"Java Conventions [built-in]").
45 (2) Generate your patch using git tools out of your commits.
47 git based diff tools (git, and StGIT included) generate unidiff,
48 which is the only acceptable format.
50 You do not have to be afraid to use -M option to "git diff" or "git
51 format-patch", if your patch involves file renames. The receiving
52 end can handle them just fine.
54 Please make sure your patch does not include any extra files which
55 do not belong in a patch submission. Make sure to review your
56 patch after generating it, to ensure accuracy. Before sending out,
57 please make sure it cleanly applies to the "master" branch head.
60 (3) Check the license.
62 EGit is licensed under the Eclipse Public License (EPL).
64 Under this licensing model *every* file within the project
65 *must* list which license covers it in the header of the file.
66 Any new contributions to an existing file *must* be submitted under
67 the current license of that file. Any new files *must* clearly
68 indicate which license they are provided under in the file header.
70 Please verify that you are legally allowed and willing to submit your
71 changes under the license covering each file *prior* to submitting
72 your patch. It is virtually impossible to remove a patch once it
73 has been applied and pushed out.
76 (4) Review the Eclipse Due Diligence Process.
78 http://www.eclipse.org/legal/EclipseLegalProcessPoster.pdf
81 (5) Sending your patches.
83 "git format-patch" command follows the best current practice to
84 format a commit as a reviewable text message.
86 At the beginning of the patch should come your commit message,
87 a line that consists of three dashes, followed by the diffstat
88 information and the patch itself. If you are forwarding a patch
89 from somebody else, optionally, at the beginning of the e-mail
90 message just before the commit message starts, you can put a "From:
91 " line to name that person.
93 You often want to add additional explanation about the patch,
94 other than the commit message itself. Place such "cover letter"
95 material between the three dash lines and the diffstat, or please
96 place it in the bug description itself.
98 Open a new bug on the Eclipse bug tracker on the EGit project:
100 https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit
102 Attach the mailbox file(s) created by "git format-patch" to the bug.