Examples of stashList()


Examples of org.eclipse.jgit.api.Git.stashList()

      file1.setContents("Foo bar baz contents");

      gitUtils.addAll(repo);
      gitUtils.stashCreate(repo);

      Assert.assertTrue("should contain one stash", repo.stashList().call().iterator().hasNext());

      gitUtils.stashApply(repo);

      gitUtils.addAll(repo);
      gitUtils.commit(repo, commitMsgs[1]);
View Full Code Here

Examples of org.eclipse.jgit.api.Git.stashList()

      Assert.assertNotNull("log should not be null", logs);
      Assert.assertEquals("log should contain two items", 2, logs.size());
      Assert.assertEquals("commit messages should be the same", commitMsgs[0], logs.get(0));
      Assert.assertEquals("commit messages should be the same", commitMsgs[1], logs.get(1));

      Assert.assertFalse("should contain no stashes", repo.stashList().call().iterator().hasNext());
   }

   @Test
   public void shouldCherryPickChanges() throws Exception
   {
View Full Code Here

Examples of org.eclipse.jgit.api.Git.stashList()

      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

Examples of org.eclipse.jgit.api.Git.stashList()

                .call();

        System.out.println("Created stash " + stash);

        // list the stashes
        Collection<RevCommit> stashes = git.stashList().call();
        for(RevCommit rev : stashes) {
            System.out.println("Found stash: " + rev);
        }
       
        // drop the 1st stash without applying it
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.