Package org.eclipse.jgit.api

Examples of org.eclipse.jgit.api.StatusCommand.call()


    // List changes
    StatusCommand statusCommand = new Git(db).status();
    if (filterPaths != null && filterPaths.size() > 0)
      for (String path : filterPaths)
        statusCommand.addPath(path);
    org.eclipse.jgit.api.Status status = statusCommand.call();
    Collection<String> added = status.getAdded();
    Collection<String> changed = status.getChanged();
    Collection<String> removed = status.getRemoved();
    Collection<String> modified = status.getModified();
    Collection<String> missing = status.getMissing();
View Full Code Here


  protected void run() throws Exception {
    StatusCommand statusCommand = new Git(db).status();
    if (filterPaths != null && filterPaths.size() > 0)
      for (String path : filterPaths)
        statusCommand.addPath(path);
    org.eclipse.jgit.api.Status status = statusCommand.call();
    printStatus(status);
  }

  private void printStatus(org.eclipse.jgit.api.Status status)
      throws IOException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.