Example usage for org.eclipse.jgit.api CheckoutCommand addPaths

List of usage examples for org.eclipse.jgit.api CheckoutCommand addPaths

Introduction

In this page you can find the example usage for org.eclipse.jgit.api CheckoutCommand addPaths.

Prototype

public CheckoutCommand addPaths(List<String> p) 

Source Link

Document

Add multiple slash-separated paths to the list of paths to check out.

Usage

From source file:org.archicontribs.modelrepository.grafico.MergeConflictHandler.java

License:Open Source License

private void checkout(Git git, Stage stage, List<String> paths) throws IOException, GitAPIException {
    CheckoutCommand checkoutCommand = git.checkout();
    checkoutCommand.setStage(stage);/* ww  w  .  java2  s .c  om*/
    checkoutCommand.addPaths(paths);
    checkoutCommand.call();
}