- Jan 10, 2010
-
-
Robin Rosenberg authored
This restores the ability to build using just Eclipse without strange procedures, extra plugins and it is again possible to work on both JGit and EGit in the same Eclipse workspace with ease. Change-Id: I0af08127d507fbce186f428f1cdeff280f0ddcda Signed-off-by:
Robin Rosenberg <robin.rosenberg@dewire.com>
-
- Dec 28, 2009
-
-
Shawn Pearce authored
Tycho isn't production ready for projects like JGit to be using as their primary build driver. Some problems we ran into with Tycho 0.6.0 that are preventing us from using it are: * Tycho can't run offline The P2 artifact resolver cannot perform its work offline. If the build system has no network connection, it cannot compile a project through Tycho. This is insane for a distributed version control system where developers are used to being offline during development and local testing. * Magic state in ~/.m2/repository/.meta/p2-metadata.properties Earlier iterations of this patch tried to use a hybrid build, where Tycho was only used for the Eclipse specific feature and P2 update site, and maven-bundle-plugin was used for the other code. This build seemed to work, but only due to magic Tycho specific state held in my local home directory. This means builds are not consistently repeatable across systems, and lead me to believe I had a valid build, when in fact I did not. * Manifest-first build produces incomplete POMs The POM created by the manifest-first build format does not contain the dependency chain, leading a downstream consumer to not import the runtime dependencies necessary to execute the bundle it has imported. In JGit's case, this means JSch isn't included in our dependency chain. * Manifest-first build produces POMs unreadable by Maven 2.x JGit has existing application consumers who are relying on Maven 2.x builds. Forcing them to step up to an alpha release of Maven 3 is simply unacceptable. * OSGi bundle export data management is tedious Editing each of our pom.xml files to mark a new release is difficult enough as it is. Editing every MANIFEST.MF file to list our exported packages and their current version number is something a machine should do, not a human. Yet the Tycho OSGi way unfortunately demands that a human do this work. * OSGi bundle import data management is tedious There isn't a way in the MANIFEST.MF file format to reuse the same version tags across all of our imports, but we want to have a consistent view of our dependencies when we compile JGit. After wasting more than 2 full days trying to get Tycho to work, I've decided its a lost cause right now. We need to be chasing down bugs and critical features, not trying to bridge the gap between the stable Maven repository format and the undocumented P2 format used only by Eclipse. So, switch the build to use Apache Felix's maven-bundle-plugin. This is the same plugin Jetty uses to produce their OSGi bundle manifests, and is the same plugin used by the Apache Felix project, which is an open-source OSGi runtime. It has a reasonable number of folks using it for production builds, and is running on top of the stable Maven 2.x code base. With this switch we get automatically generated MANIFEST.MF files based on reasonably sane default rules, which reduces the amount of things we have to maintain by hand. When necessary, we can add a few lines of XML to our POMs to tweak the output. Our build artifacts are still fully compatible with Maven 2.x, so any downstream consumers are still able to use our build products, without stepping up to Maven 3.x. Our artifacts are also valid as OSGi bundles, provided they are organized on disk into a repository that the runtime can read. With maven-bundle-plugin the build runs offline, as much as Maven 2.x is able to run offline anyway, so we're able to return to a distributed development environment again. By generating MANIFEST.MF at the top level of each project (and therefore outside of the target directory), we're still compatible with Eclipse's PDE tooling. Our projects can be imported as standard Maven projects using the m2eclipse plugin, but the PDE will think they are vaild plugins and make them available for plugin builds, or while debugging another workbench. This change also completely removes Tycho from the build. Unfortunately, Tycho 0.6.0's pom-first dependency resolver is broken when resolving a pom-first plugin bundle through a manifest-first feature package, so bundle org.eclipse.jgit can't be resolved, even though it might actually exist in the local Maven repository. Rather than fight with Tycho any further, I'm just declaring it plugina-non-grata and ripping it out of the build. Since there are very few tools to build a P2 format repository, and no documentation on how to create one without running the Eclipse UI manually by poking buttons, I'm declaring that we are not going to produce a P2 update site from our automated builds. Change-Id: If7938a86fb0cc8e25099028d832dbd38110b9124 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Robin Rosenberg authored
This makes the jgit command line behave like the C Git implementation in the respect. These variables are not recognized in the core, though we add support to do the overrides there. Hence other users of the JGit library, like the Eclipse plugin and others, will not be affected. GIT_DIR The location of the ".git" directory. GIT_WORK_TREE The location of the work tree. GIT_INDEX_FILE The location of the index file. GIT_CEILING_DIRECTORIES A colon (semicolon on Windows) separated list of paths that which JGit will not cross when looking for the .git directory. GIT_OBJECT_DIRECTORY The location of the objects directory under which objects are stored. GIT_ALTERNATE_OBJECT_DIRECTORIES A colon (semicolon on Windows) separated list of object directories to search for objects. In addition to these we support the core.worktree config setting when the git directory is set deliberately instead of being found. Change-Id: I2b9bceb13c0f66b25e9e3cefd2e01534a286e04c Signed-off-by:
Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Robin Rosenberg authored
An extra flag when creating a RefUpdate object allows the caller to destroy the symref and replace it with an object ref, a.k.a. detached HEAD. Change-Id: Ia88d48eab1eb4861ebfa39e3be9258c3824a19db Signed-off-by:
Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
A few locations were doing OBJECT_ID_LENGTH * 2 on their own, as the old STR_LEN constant wasn't visible. Replace them with the new public constant OBJECT_ID_STRING_LENGTH. Change-Id: Id39bddb52de8c65bb097de042e9d4ed99598201f Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Robin Rosenberg authored
Since Constants.OBJECT_ID_LENGTH is a compile time constant we can be sure that it will always be inlined. The same goes for the associated constant STR_LEN which is now refactored to the Constant class and given a name better suited for wider use. Change-Id: I03f52131e64edcd0aa74bbbf36e7d42faaf4a698 Signed-off-by:
Robin Rosenberg <robin.rosenberg@dewire.com>
-
- Dec 22, 2009
-
-
Nico Sallembien authored
The comment indicates that a well-behaved client should not have sent an update for a ref that already exists, but this in a block that corresponds to a create command.
-
- Dec 18, 2009
-
-
Mykola Nikishov authored
Change-Id: Iec0688232bd59d4626111d77633109918e8e1df3 Signed-off-by:
Mykola Nikishov <mn@mn.com.ua> Signed-off-by:
Robin Rosenberg <robin.rosenberg@dewire.com>
-
- Dec 08, 2009
-
-
Igor Fedorenko authored
Change-Id: I6005134a45046d16e323a2f9b2815831cdbe15e0 Signed-off-by:
Igor Fedorenko <igor@ifedorenko.com>
-
- Nov 29, 2009
-
-
Mykola Nikishov authored
Change-Id: I4e369382b8a83a5c0772462d1b176b1e23910ada
-
- Nov 03, 2009
-
-
Shawn Pearce authored
This way SWT based applications don't wind up loading this AWT based code when using SSH. Change-Id: I9080f3dd029c2a087e6b687480018997cc5c5d23 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
This makes it easier to swap out authenticator implementations and yet still rely upon being able to configure at least one Authenticator instance in the JVM and program it with data obtained from outside of the user interface. Change-Id: I8c1a0eb8acee1d306f4c3b40a790b7fa0c3abb70 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
Drop our simple and stupid jgit.sh and instead rely upon Maven for the command line based build. Maven is relatively simple to download and install, and doesn't require the entire Eclipse IDE. To avoid too much refactoring of the current code we reuse the existing src/ directory within each plugin, and treat each of the existing OSGI bundles as one Maven artifact. The command line wrapper jgit.sh no longer works in the uncompiled state, as we don't know where to obtain our JSch or args4j from. Developers will now need to compile it with `mvn package`, or run our Main class from within an IDE which has the proper classpath. Bug: 291265 Change-Id: I355e95fa92fa7502651091d2b651be6917a26805 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Oct 31, 2009
-
-
Mykola Nikishov authored
This new UI bundle contains the org.eclipse.jgit.awtui package, which was moved out of the org.eclipse.jgit bundle. org.eclipse.jgit.pgm depends on org.eclipse.jgit.ui, so we need to update the classpath and make_jgit.sh to include it. This move takes the awtui classes out of the Maven build, which means we are no longer able to distribute these classes to our downstream Maven customers. The entire Maven package structure needs to be overhauled so that Eclipse bundle matches 1:1 with the Maven artifact. Bug: https://bugs.eclipse.org/291124 Change-Id: Ibf1a9968387e3d11fdce54592f710ec4cc7f1ddb Signed-off-by:
Mykola Nikishov <mn@mn.com.ua> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Saša Živkov authored
For historical reasons JGit was creating .git/remotes folder when initialization an empty repository. However, this folder is never used and the new Git repository format doesn't contain them. Removed the unnecessary remotes folder creation, it was removed from C Git in 75c384efb52d ("Do not create $GIT_DIR/remotes/ directory anymore") by Junio C Hamano on Dec 19 2006. C Git hasn't made it for almost 3 years. Change-Id: I5473f3676a3642afdf9aaac44b7e6319c6e170b9 Signed-off-by:
Sasa Zivkov <sasa.zivkov@sap.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Robin Rosenberg authored
According the javadoc, and implied by the name of the class, NB is about network byte order. The purpose of moving the IO only, and non-byte order related functions to another class is to make it easier for new contributors to understand that they can use these functions in general and it's also makes it easier to understand where to put new IO related utility functions Change-Id: I4a9f6b39d5564bc8a694b366e7ff3cc758c5181b Signed-off-by:
Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
Our project coding conventions do not want trailing whitespace at the end of a source code line. Configure Eclipse to automatically remove them when saving any Java source file. Change-Id: I9701366b3b1240879761b30556e6ff416e969e1d Reviewed-by:
Mykola Nikishov <mn@mn.com.ua> Reviewed-by:
Alex Blewitt <alex.blewitt@gmail.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Alex Blewitt authored
As discussed on the egit-dev mailing list, we prefer not to have trailing whitespace in our source code. Correct all currently offending lines by trimming them. Change-Id: I002b1d1980071084c0bc53242c8f5900970e6845 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Oct 16, 2009
-
-
Mykola Nikishov authored
Bug: 291133 Change-Id: I24272d029cff446ffc80063870478577d628f338 Reviewed-by:
Alex Blewitt <alex.blewitt@gmail.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Oct 08, 2009
-
-
Constantine Plotnikov authored
When reading commits the system default encoding was used if no encoding was specified in the commit. The patch modifies the test to add a check that commit message was encoded correctly (the test fails on old implementation if system encoding is not UTF-8) and fixes Commit.decode() method to use UTF-8 if encoding is not specified in the commit object. Change-Id: I27101da3c2eb6edd0c4a9e4c0523e48b286e3cd5 Signed-off-by:
Constantine Plotnikov <constantine.plotnikov@gmail.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Oct 05, 2009
-
-
Shawn Pearce authored
Our project plan calls for us to build 0.6 as the next version, but I forgot to also update the MANIFEST.MF for the plugin when I edited the Maven pom. Change-Id: Ic1a6c64374a4384a65a3dd0306adddfc73adac52 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
This is the last chunk of code in jgit-core which references the awtui package. Moving it to the only consumer in jgit-pgm allows us to move the awtui package over to the jgit-awtui module. Change-Id: I2fd81be2076117b2f2c5f8ed45de7f29272af6cf Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
This removes one of the few remaining dependencies on AWTAuthenticator from the core library. For the most part the interface is identical to the prior main method. The jgit-pgm Main class already sets up the HTTP proxy and authenticator for us, so we don't need to do that in our new run method. Change-Id: Ia2cce34d34c97b88214a8bd8f2cc542845e19032 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
We now supply an exported format description for anyone to import into their own workbench, and all projects reference this style in a consistent way. Change-Id: Ic243544a761ef2db29025a89ba6bb932a3a3ce34 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Oct 02, 2009
-
-
Christian Halstrick authored
Honor the configuration parameter core.logAllRefUpdates when writing reflogs. Instead of writing reflog entries always only write reflogs if this parameter is set to true or if the corresponding file in the <git-dir>/logs directory already exists. In other words: if you are updating a ref and this parameter is set to false and there is no file corresponding to your ref in the <git-dir>/logs folder then no reflog will be written. This is a fix for the issue http://code.google.com/p/egit/issues/detail?id=4 Change-Id: I908e4c77e3630dc3223b2d2a47cb4534dbe4ed42 Signed-off-by:
Matthias Sohn <matthias.sohn@sap.com> Signed-off-by:
Christian Halstrick <christian.halstrick@sap.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Shawn Pearce authored
Recently Eclipse started complaining about undocumented protected members here, so lets document them to make the errors go away. Change-Id: Ia3bc9fa69854953db5dc9a982821a2f3abe8d05a Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Oct 01, 2009
-
-
Jonas Fonseca authored
This allows SwingGraphPanes to be reused by simply clearing and re-filling. Requires RevObjectList initialization to not call clear() from its constructor, because this will lead PlotCommitList.clear() to be called before all variables have been initialized. Change-Id: I14a07124441b58cd88c67da088ba52ef9c30b043 Signed-off-by:
Jonas Fonseca <fonseca@diku.dk> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Saša Živkov authored
When throwing MissingBundlePrerequisiteException we also include the short description, if available, of each missing object. This is the fix for the following issue: http://code.google.com/p/egit/issues/detail?id=25 Change-Id: I5d45aec7873af76a12170d9a500626a7264f2c42 Signed-off-by:
Sasa Zivkov <sasa.zivkov@sap.com> Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
Chris Aniszczyk authored
- We shouldn't be re-exporting bundles, JSch in this case. Instead used a Import-Package clause. - Some packages weren't exported. In Eclipse we have a policy to export all the packages in a bundle - Exporting version numbers on the export packages. Bug: 291108 Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Sep 30, 2009
-
-
Shawn Pearce authored
Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-
- Sep 29, 2009
-
-
Git Development Community authored
Per CQ 3448 this is the initial contribution of the JGit project to eclipse.org. It is derived from the historical JGit repository at commit 3a2dd9921c8a08740a9e02c421469e5b1a9e47cb. Signed-off-by:
Shawn O. Pearce <spearce@spearce.org>
-