Example usage for org.eclipse.jgit.transport TransportGitSsh close

List of usage examples for org.eclipse.jgit.transport TransportGitSsh close

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport TransportGitSsh close.

Prototype

@Override
public void close() 

Source Link

Usage

From source file:org.eclipse.ptp.internal.rdt.sync.git.core.JGitRepo.java

License:Open Source License

/**
 * Releases all resources allocated by this JGit repository instance, including closing all transport objects and closing the
 * repository itself. Instance should not be used after calling this method.
 *//*from   ww  w .ja  v  a2 s  .  c  om*/
public void close() {
    for (TransportGitSsh t : remoteToTransportMap.values()) {
        t.close();
    }
    remoteToTransportMap.clear();
    git.getRepository().close();
    git = null;
    fileFilter = null;
    fileToMergePartsMap.clear();
}