commit | 5e397b9f5ffdc4107b343c290b46167c43036635 | [log] [tgz] |
---|---|---|
author | Thomas Wolf <thomas.wolf@paranor.ch> | Thu Dec 13 22:14:07 2018 +0100 |
committer | Michael Keppler <michael.keppler@gmx.de> | Sat Dec 15 13:43:40 2018 -0500 |
tree | c27cbecab6a621665cf7ab8f8c3f5962a9025e92 | |
parent | 98716a884f6bc02b12011446b46e103b49350893 [diff] |
Staging view: calculate the full title text in the background The computation of the title of the staging view is fairly expensive. First, computing the branch status isn't cheap, and when the repository is in detached head state, we even scan the reflog trying to find out whether a tag points to the commit so that we could show the tag name. Doing all this in the UI thread is not optimal, and apparently leads to noticeable UI freezes at least on Windows. Improve this by leveraging the asynchronous label provider framework: basically the title of the staging view shows the same information as the repositories view does for a repository node. So create a repository node and use a RepositoryTreeNodeLabelProvider to calculate its label, then set that text as the staging view title text. The RepositoryTreeNodeLabelProvider uses the asynchronous lightweight decorator framework and thus computes all the expensive things in the background and then fires a LabelProviderChangedEvent once the decorations are ready. We re-use this same mechanism now to update the staging view title once the decorations are ready. Bug: 542513 Change-Id: I2b0630684d5ac983a3d241b25210c62c25c99f71 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
EGit is an Eclipse plugin for working with Git repositories. It is based on the JGit library, which is a Git implementation in pure Java.
This package is licensed under the EPL. Please refer to the LICENSE file for the complete license.
This package is composed of the following major components:
org.eclipse.egit.core
An Eclipse plugin providing an interface to org.eclipse.jgit and support routines to allow processing against the Eclipse workspace and resource APIs, rather than the standard Java file APIs. It also supplies the team provider implementation.
org.eclipse.egit.ui
An Eclipse plugin providing the user interface on top of org.eclipse.egit.core.
org.eclipse.egit.core.test
Unit tests for org.eclipse.egit.core.
org.eclipse.egit.ui.test
UI tests for org.eclipse.egit.ui.
org.eclipse.egit
A plugin for packaging
org.eclipse.egit-feature
Also packaging. This project is for building an Eclipse “feature” out of the plugins above.
org.eclipse.egit.repository
This package is for producing a p2 repository, i.e. a web site you can point your eclipse at and just upgrade.
There are other components which provide integration with other plugins.
Symbolic links are supported on Java 7 and higher and require that the optional JGit Java 7 feature is installed. For remaining issues with symbolic link support see https://bugs.eclipse.org/bugs/show_bug.cgi?id=429304.
CRLF conversion works for some things, but is in general still being worked on.
In general, EGit supports at least the latest two Eclipse releases. For details, please see https://wiki.eclipse.org/EGit/FAQ
Newer version of EGit may implement new functionality, remove existing functions and change others without other notice than what is written in the commit log and source files themselves.
The following list is not complete, but it gives an overview of the features:
org.eclipse.egit.core
Supplies an Eclipse team provider.
Connect/disconnect the provider to a project.
Search for the repositories associated with a project by autodetecting the Git repository directories.
Store which repositories are tied to which containers in the Eclipse workspace.
Tracks moves/renames/deletes and reflects them in the cache tree.
Resolves through linked containers.
org.eclipse.egit.ui
Connect team provider wizard panels.
Connect to Git team provider by making a new repository.
Connect to Git team provider by searching local filesystem for existing repository directories.
Team actions: track (add), untrack (remove), disconnect, show history, compare version.
Resource decorator shows file/directory state in the package explorer and other views.
Creating new commits or amending commits.
View for staging changes (whole files and partial staging), showing their differences and committing them.
Graphical history viewer with the ability to compare versions using eclipse built-in compare editor.
Clone, push, pull, fetch
Merge, rebase, cherry-pick
gitattributes support
In particular CRLF conversion is not yet fully implemented.
Post question or comments to the egit-dev@eclipse.org mailing list. You need to be subscribed to post, see here:
https://dev.eclipse.org/mailman/listinfo/egit-dev
See the EGit Contributor Guide:
http://wiki.eclipse.org/EGit/Contributor_Guide
More information about Git, its repository format, and the canonical C based implementation can be obtained from the Git websites: