Package org.eclipse.jgit.api.RebaseCommand

Examples of org.eclipse.jgit.api.RebaseCommand.InteractiveHandler


    super.tearDown();
  }

  @Test
  public void squash() throws Exception {
    InteractiveHandler messageHandler = new InteractiveHandler() {
      public void prepareSteps(List<RebaseTodoLine> steps) {
        // not used
      }

      public String modifyCommitMessage(String commit) {
View Full Code Here


        pm.beginTask("", 2); //$NON-NLS-1$

        pm.subTask(MessageFormat.format(CoreText.RewordCommitOperation_rewording,
            commit.name()));

        InteractiveHandler handler = new InteractiveHandler() {
          public void prepareSteps(List<RebaseTodoLine> steps) {
            for (RebaseTodoLine step : steps) {
              if (step.getCommit().prefixCompare(commit) == 0) {
                try {
                  step.setAction(RebaseTodoLine.Action.REWORD);
View Full Code Here

        pm.subTask(MessageFormat.format(
            CoreText.SquashCommitsOperation_squashing,
            Integer.valueOf(commits.size())));

        InteractiveHandler handler = new InteractiveHandler() {
          public void prepareSteps(List<RebaseTodoLine> steps) {
            RevCommit firstCommit = commits.get(0);
            for (RebaseTodoLine step : steps) {
              if (isRelevant(step.getCommit())) {
                try {
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.api.RebaseCommand.InteractiveHandler

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.