Package org.eclipse.jgit.api

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


    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


   * @throws InvalidRefNameException
   * @throws GitAPIException
   */
  protected boolean isStashEmpty(Git git) throws InvalidRefNameException, GitAPIException {
    StashListCommand stashList = git.stashList();
    Collection<RevCommit> stashedRefsCollection = stashList.call();
    return stashedRefsCollection.isEmpty();
  }

  @Override
  protected boolean handlePost(RequestInfo requestInfo) throws ServletException {
View Full Code Here

      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.