Skip to content

Commit dfbdc45

Browse files
committed
Initial EGit contribution to eclipse.org
Per CQ 3393 this is the initial contribution of the EGit project (an Eclipse team provider for Git) to eclipse.org. This initial version is derived from the historial EGit repository at commit a9578ba. Signed-off-by: Shawn O. Pearce <[email protected]>
0 parents  commit dfbdc45

File tree

250 files changed

+28426
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+28426
-0
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.java diff=java

Diff for: EGIT_INSTALL

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
EGit Installation
3+
4+
PREREQUISITES
5+
6+
In order to install the Git Eclipse plugin you need to have the following
7+
things.
8+
9+
- Eclipse version 3.3.1, or 3.4.0
10+
11+
- Java 6. Java 1.5.0_11 and later seems to work. The reason is that
12+
the garbage collection does not do a good enough job when using memory
13+
mapped files. The sources can be hacked to used non-mmaped files but
14+
that is very slow. JDK 1.4.x is *not* supported at all and JDK 1.5 is only
15+
supported as long as it works :).
16+
17+
- A reasonably recent version of Git itself installed on your platform to
18+
take care of what the plugin does not yet do or do things that native
19+
git does better. Some tests have been performed using both Cygwin and MSYS git.
20+
Both have issues that we need both feedback and patches for.
21+
22+
INSTALLATION INSTRUCTIONS
23+
24+
- Delete any old versions of the plugin in the <eclipse-path>/plugins/org.eclipse.egit.*
25+
- Start eclipse
26+
- Make sure a recent JDK 1.5.0_11 or JDK 1.6.x is among your installed JRE's. Which
27+
one is the default should not matter but Java 6 is recommended.
28+
- Import the egit projects. Make sure there are no compilation errors
29+
- Now you can either export the plugin to a set of jar files to use in an Eclipse
30+
installation or run it from within Eclipse. The latter is for development and
31+
tracking down bugs.
32+
- Export the plugin by selecting the org.eclipse.egit.* packages in package
33+
explorer and choosing File/Export. Then select Deployable plug-ins and
34+
fragments and choose the Next button. Set Directory to the top of your
35+
installation directory (NOT the plugins directory). Select Finish. After
36+
that restart Eclipse. You can associate a project withe Eclipse using the
37+
Team>Share menu in the context menu when a project is selected.
38+
39+
DEBUGGING INSTRUCTIONS
40+
- Select the org.eclipse.egit.ui project, and using the context menu select
41+
Run As(or Debug As) / Eclipse Application. Make sure the application runs
42+
using JDK 1.6 (or JDK1.5.0_11 or newer) if you have any problems.
43+
44+
There may be errors in the <workspace>/.metadata/.log or even on stdout that can help
45+
you track down and problem. When reporting errors include stack traces and the commit
46+
id or the version your plugin is built from, or the version of the plugin if it does
47+
not contain a date.

Diff for: LICENSE

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
Eclipse Public License - v 1.0
2+
3+
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
4+
5+
1. DEFINITIONS
6+
7+
"Contribution" means:
8+
9+
a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
10+
b) in the case of each subsequent Contributor:
11+
12+
i) changes to the Program, and
13+
14+
ii) additions to the Program;
15+
16+
where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
17+
18+
"Contributor" means any person or entity that distributes the Program.
19+
20+
"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
21+
22+
"Program" means the Contributions distributed in accordance with this Agreement.
23+
24+
"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
25+
26+
2. GRANT OF RIGHTS
27+
28+
a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
29+
30+
b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
31+
32+
c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
33+
34+
d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
35+
36+
3. REQUIREMENTS
37+
38+
A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
39+
40+
a) it complies with the terms and conditions of this Agreement; and
41+
42+
b) its license agreement:
43+
44+
i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
45+
46+
ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
47+
48+
iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
49+
50+
iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
51+
52+
When the Program is made available in source code form:
53+
54+
a) it must be made available under this Agreement; and
55+
56+
b) a copy of this Agreement must be included with each copy of the Program.
57+
58+
Contributors may not remove or alter any copyright notices contained within the Program.
59+
60+
Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
61+
62+
4. COMMERCIAL DISTRIBUTION
63+
64+
Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
65+
66+
For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
67+
68+
5. NO WARRANTY
69+
70+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
71+
72+
6. DISCLAIMER OF LIABILITY
73+
74+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
75+
76+
7. GENERAL
77+
78+
If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
79+
80+
If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
81+
82+
All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
83+
84+
Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
85+
86+
This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
87+
88+

Diff for: README

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
== Eclipse GIT plugin ==
2+
3+
This package is licensed under the EPL. Please refer to the COPYING
4+
and LICENSE files for the complete licenses within each package.
5+
6+
This package is actually composed of three major components plus
7+
three for packaging.
8+
9+
org.eclipse.egit.core/
10+
11+
An Eclipse plugin providing an interface to org.eclipse.jgit
12+
and support routines to allow processing against the Eclipse
13+
workspace and resource APIs, rather than the standard Java
14+
file APIs. It also supplies the team provider implementation.
15+
Everything here is EPL.
16+
17+
org.eclipse.egit.ui/
18+
19+
An Eclipse plugin providing the user interface on top of
20+
org.eclipse.egit.core.
21+
22+
Everything here is EPL.
23+
24+
org.eclipse.egit.core.test/
25+
26+
Unit tests for org.eclipse.egit.core.
27+
28+
Everything here is EPL.
29+
30+
org.eclipse.egit/
31+
32+
A plugin for packaging
33+
34+
Everything here is EPL.
35+
36+
org.eclipse.egit-feature
37+
38+
Also packaging. This project is for building an Eclipse "feature"
39+
out of the plugins above.
40+
41+
Everything here is EPL.
42+
43+
org.eclipse.egit-updatesite/
44+
45+
This package is for producing and update site, i.e. a web site
46+
you can point your eclipse at and just upgrade.
47+
48+
Everything here is EPL.
49+
50+
== WARNINGS / CAVEATS ==
51+
52+
- Symbolic links are not supported because java does not support it.
53+
Such links could be damaged.
54+
55+
- Only the timestamp of the index is used by jgit check if the index
56+
is dirty.
57+
58+
- Don't try the plugin with a JDK other than 1.6 (Java 6) unless you
59+
are prepared to investigate problems yourself. JDK 1.5.0_11 and later
60+
Java 5 versions *may* work. Earlier versions do not. JDK 1.4 is *not*
61+
supported. Apple's Java 1.5.0_07 is reported to work acceptably. We
62+
have no information about other vendors. Please report your findings
63+
if you try.
64+
65+
- CRLF conversion is never performed. On Windows you should thereforc
66+
make sure your projects and workspaces are configured to save files
67+
with Unix (LF) line endings.
68+
69+
== COMPATIBILITY ==
70+
71+
- Eclipse 3.4 is the minimum Eclipse version.
72+
73+
- Newer version of EGit may implement new functionality, remove
74+
existing functions and change others without other notice than what
75+
is written in the commit log and source files themselves.
76+
77+
78+
== Package Features ==
79+
80+
org.eclipse.egit.core/
81+
82+
* Supplies an Eclipse team provider.
83+
84+
* Connect/disconnect the provider to a project.
85+
86+
* Search for the repositories associated with a project by
87+
autodetecting the GIT repository directories.
88+
89+
* Store which repositories are tied to which containers in the
90+
Eclipse workspace.
91+
92+
* Tracks moves/renames/deletes and reflects them in the cache
93+
tree.
94+
95+
* Resolves through linked containers.
96+
97+
org.eclipse.egit.ui/
98+
99+
* Connect team provider wizard panels.
100+
101+
* Connect to GIT team provider by making a new repository.
102+
103+
* Connect to GIT team provider by searching local filesystem
104+
for existing repository directories.
105+
106+
* Team actions: track (add), untrack (remove), disconnect, show
107+
history, compare version.
108+
109+
* Resource decorator shows file/directory state in the package
110+
explorer and other views.
111+
112+
* Creating new commits or amending commits.
113+
114+
* Graphical history viewer with the ability to compare versions
115+
using eclipse built-in compare editor.
116+
117+
* Clone, push, fetch
118+
119+
== Missing Features ==
120+
121+
There are a lot of missing features. You need the real Git for this.
122+
For some operations it may just be the preferred solution also. There
123+
are not just a command line, there is e.g. git-gui that makes committing
124+
partial files simple.
125+
126+
- Merging.
127+
128+
- Repacking from within the plugin.
129+
130+
- Generate a GIT format patch.
131+
132+
- Apply a GIT format patch.
133+
134+
- Documentation. :-)
135+
136+
- gitattributes support
137+
In particular CRLF conversion is not implemented. Files are treated
138+
as byte sequences.
139+
140+
- submodule support
141+
Submodules are not supported or even recognized.
142+
143+
- The Eclipse plugin cannot handle files outside any Eclipse project. You
144+
need commit changes to such files outside of Eclipse.
145+
146+
== Support ==
147+
148+
Post question, comments or patches to the [email protected] mailing list.
149+
150+
151+
== Contributing ==
152+
153+
See SUBMITTING_PATCHES in this directory. However, feedback and bug reports
154+
are also contributions.
155+
156+
157+
== About GIT ==
158+
159+
More information about GIT, its repository format, and the canonical
160+
C based implementation can be obtained from the GIT websites:
161+
162+
http://git.or.cz/
163+
http://www.kernel.org/pub/software/scm/git/
164+
http://www.kernel.org/pub/software/scm/git/docs/
165+

0 commit comments

Comments
 (0)