Package com.gitblit.utils.DiffUtils

Examples of com.gitblit.utils.DiffUtils.DiffOutput


    Repository r = getRepository();

    RevCommit commit = getCommit();

    final DiffOutput diff = DiffUtils.getCommitDiff(r, commit, DiffOutputType.HTML);

    List<String> parents = new ArrayList<String>();
    if (commit.getParentCount() > 0) {
      for (RevCommit parent : commit.getParents()) {
        parents.add(parent.name());
View Full Code Here


      // commit ids
      fromCommitId.setObject(startId);
      toCommitId.setObject(endId);

      final DiffOutput diff = DiffUtils.getDiff(r, fromCommit, toCommit, DiffOutputType.HTML);

      // add compare diffstat
      int insertions = 0;
      int deletions = 0;
      for (PathChangeModel pcm : diff.stat.paths) {
View Full Code Here

    Repository r = getRepository();

    RevCommit commit = getCommit();

    final DiffOutput diff = DiffUtils.getCommitDiff(r, commit, DiffOutputType.HTML);

    List<String> parents = new ArrayList<String>();
    if (commit.getParentCount() > 0) {
      for (RevCommit parent : commit.getParents()) {
        parents.add(parent.name());
View Full Code Here

      // commit ids
      fromCommitId.setObject(startId);
      toCommitId.setObject(endId);

      final DiffOutput diff = DiffUtils.getDiff(r, fromCommit, toCommit, DiffOutputType.HTML);

      // add compare diffstat
      int insertions = 0;
      int deletions = 0;
      for (PathChangeModel pcm : diff.stat.paths) {
View Full Code Here

TOP

Related Classes of com.gitblit.utils.DiffUtils.DiffOutput

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.