Package org.eclipse.jgit.api

Examples of org.eclipse.jgit.api.StatusCommand


      outw.println(CLIText.formatLine(
          MessageFormat.format(CLIText.get().onBranch, branch)));
    } else
      outw.println(CLIText.formatLine(CLIText.get().notOnAnyBranch));
    // 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


  @Option(name = "--", metaVar = "metaVar_path", multiValued = true)
  protected List<String> filterPaths;

  @Override
  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);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.api.StatusCommand

Copyright © 2018 www.massapicom. 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.