Java Examples for zielu.gittoolbox.GitToolBoxProject

The following java examples will help you to understand the usage of zielu.gittoolbox.GitToolBoxProject. These source code samples are taken from different open source projects.

Example 1
Project: GitToolBox-master  File: GitStatusWidget.java View source code
private void runUpdate() {
    GitVcs git = GitVcs.getInstance(myProject);
    if (git != null) {
        GitRepository repository = GitBranchUtil.getCurrentRepository(myProject);
        GitAheadBehindCount aheadBehind = null;
        if (repository != null) {
            GitToolBoxProject toolBox = GitToolBoxProject.getInstance(myProject);
            aheadBehind = toolBox.perRepoStatusCache().getInfo(repository).count;
        }
        update(repository, aheadBehind);
    } else {
        empty();
    }
    updateStatusBar();
}