Example usage for org.eclipse.jgit.api StatusCommand addPath

List of usage examples for org.eclipse.jgit.api StatusCommand addPath

Introduction

In this page you can find the example usage for org.eclipse.jgit.api StatusCommand addPath.

Prototype

public StatusCommand addPath(String path) 

Source Link

Document

Show only the status of files which match the given paths.

Usage

From source file:com.centurylink.mdw.dataaccess.file.VersionControlGit.java

License:Apache License

public Status getStatus(String path) throws Exception {
    fetch();//from w  w  w. ja va2s .c o m
    StatusCommand sc = git.status();
    if (path != null)
        sc.addPath(path);
    return sc.call();
}