EGit 3.0, Top Eclipse Kepler Feature #9

June 11, 2013 | 2 min Read

As we approach another Eclipse release, I’m counting down the Top 10 Eclipse Kepler Features that I’m most excited about. A lot has changed during my 10 year involvement with Eclipse, but nothing bigger than the migration to Git. The migration was a giant undertaking, but in addition to the code migration the team needed to learn a whole new revision control system. Luckily for us, the JGit / EGit team built excellent Git tools for Eclipse.

In Eclipse Kepler, EGit is shipping version 3.0 with number of new features since June 2012.

In the reset dialog, you can use git expressions (such as HEAD^, a refspec, or a commit hash). Of course you can also choose the type of reset to do (Soft, Mixed or Hard).

Unfortunately you can’t force a clean as part of a reset, but the clean action has been added to the repositories view now.

And for those like me who always forget to push your changes, you can now push directly from the Commit Dialog.

The EGit tooling has recently added rename detection in the history view.

And the staging view is stable and provides a very powerful workflow with the ability to drag files and folders directly from the Package Explorer to the staged changes area.

And finally, the merge tool now shows a 3-way merge. This is useful when merging two branches. The ancestor pane will show the merge base – the common ancestor between the two commits.

The Java library that underpins EGit (JGit) has also seen a number of improvements with Kepler. JGit now uses recursive merge by default. Reportedly, this result in fewer merge conflicts without causing mis-merges. JGit also pre-computes bitmap indices for the repositories. This results in faster fetch / clone operations, allowing JGit to serve Git repositories faster than the native Git. (See the EclipseCon presentation by Shawn Pearce for more information about this).

If you’re just getting started with Git and Eclipse, checkout our EGit Tutorial, the official EGit User Guide or Lars Vogel’s great resources. We also have some helpful resources on how to effectively use Eclipse and GitHub.

For more Eclipse Tips & Tricks, follow me on Twitter.

Ian Bull

Ian Bull

Ian is an Eclipse committer and EclipseSource Distinguished Engineer with a passion for developer productivity.

He leads the J2V8 project and has served on several …