Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Development Resources/Handling Git Contributions"

(New page: Git makes it easy to pull contributions from other repositories and make them part of your own. It feels wrong to do the same thing we do with CVS: attach a patch that is later added to th...)
 
(Replaced content with "This information has been moved to the [https://www.eclipse.org/projects/handbook/#resources-source Eclipse Foundation Project Handbook].")
 
(58 intermediate revisions by 11 users not shown)
Line 1: Line 1:
Git makes it easy to pull contributions from other repositories and make them part of your own. It feels wrong to do the same thing we do with CVS: attach a patch that is later added to the repository by a committer. The natural thing to do in Git is to pull the contribution in question from the contributor's Git repository.  Regardless of the mechanism used to actually get the code into an Eclipse project's Git repository, the Eclipse IP Policy and Due Diligence Process must be followed.
+
This information has been moved to the [https://www.eclipse.org/projects/handbook/#resources-source Eclipse Foundation Project Handbook].
 
+
=Scenario=
+
 
+
An individual has forked one of the eclipse.org projects and has issued a pull request for a commit record that they would like to contribute to the eclipse.org project.
+
 
+
# Eclipse project committer agrees the contribution is something they would like to include in their project.
+
# Contributor or project committer creates a bugzilla that includes a URL pointer to the commit record in the source repository.
+
# A copy of the code is attached (in patch format, see below) to the Bugzilla entry for archival purposes.
+
# The contributor provides a statement regarding the provenance, rights, and license of the code (see below)
+
# If required by the IP Due Diligence Process (e.g. if the contribution exceeds 250 lines), the committer creates a CQ and waits for "check in" permission
+
# Project committer merges the pull request back into the eclipse.org project git repository. 
+
#* Note that the committer does not need to take the code from bugzilla.
+
 
+
==Patch Format==
+
 
+
The Git ''show'' command can be used to generate a "patch format" suitable for attachment to the bug:
+
 
+
<pre>git show [commit] > patch.txt</pre>
+
 
+
==Provenance, Rights, and License==
+
 
+
We require that the contributor assert the following on each contribution ''before'' any code is introduced into an eclipse.org repository:
+
 
+
# I authored 100% of the contribution
+
# I have the rights to contribute the content to Eclipse
+
# I wrote all this code and have the rights to contribute it to Eclipse under the eclipse.org web site terms of use.
+
 
+
A link to the ''eclipse.org web site terms of use'' is found at the bottom of every page.
+
 
+
=Gerrit=
+
 
+
Gerrit provides facilities to capture all of the required information and can be used to do so. As of this writing, however, only the EGit and JGit projects have been authorized by the Eclipse Foundation to use Gerrit. Implementing Gerrit is a priority for the webmaster and we are hopeful that it will be addressed in the near future.
+

Latest revision as of 13:14, 9 December 2022

This information has been moved to the Eclipse Foundation Project Handbook.

Back to the top