Examples of StashListCommand


Examples of org.eclipse.jgit.api.StashListCommand

  protected StashRef getStashRef(Git git, String stashRev) throws InvalidRefNameException, GitAPIException {

    if (stashRev == null)
      return null;

    StashListCommand stashList = git.stashList();
    Collection<RevCommit> stashedRefsCollection = stashList.call();

    int k = 0;
    for (RevCommit rev : stashedRefsCollection)
      if (stashRev.equals(rev.getName()))
        return new StashRef(k);
View Full Code Here

Examples of org.eclipse.jgit.api.StashListCommand

   * @return <code>true</code> iff the git stash is empty
   * @throws InvalidRefNameException
   * @throws GitAPIException
   */
  protected boolean isStashEmpty(Git git) throws InvalidRefNameException, GitAPIException {
    StashListCommand stashList = git.stashList();
    Collection<RevCommit> stashedRefsCollection = stashList.call();
    return stashedRefsCollection.isEmpty();
  }
View Full Code Here

Examples of org.eclipse.jgit.api.StashListCommand

      URI baseLocation = getURI(request);
      URI cloneLocation = BaseToCloneConverter.getCloneLocation(baseLocation, BaseToCloneConverter.COMMIT);

      Git git = new Git(db);
      StashListCommand stashList = git.stashList();
      Collection<RevCommit> stashedRefsCollection = stashList.call();

      StashPage stashPage = new StashPage(cloneLocation, db, stashedRefsCollection, page, pageSize, messageFilter);
      OrionServlet.writeJSONResponse(request, response, stashPage.toJSON());
      return true;
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.