Examples of TreeFilterMarker


Examples of org.eclipse.jgit.treewalk.filter.TreeFilterMarker

          JGitText.get().treeWalkMustHaveExactlyTwoTrees);
    if (includeTrees && walk.isRecursive())
      throw new IllegalArgumentException(
          JGitText.get().cannotBeRecursiveWhenTreesAreIncluded);

    TreeFilterMarker treeFilterMarker;
    if (markTreeFilters != null && markTreeFilters.length > 0)
      treeFilterMarker = new TreeFilterMarker(markTreeFilters);
    else
      treeFilterMarker = null;

    List<DiffEntry> r = new ArrayList<DiffEntry>();
    MutableObjectId idBuf = new MutableObjectId();
    while (walk.next()) {
      DiffEntry entry = new DiffEntry();

      walk.getObjectId(idBuf, 0);
      entry.oldId = AbbreviatedObjectId.fromObjectId(idBuf);

      walk.getObjectId(idBuf, 1);
      entry.newId = AbbreviatedObjectId.fromObjectId(idBuf);

      entry.oldMode = walk.getFileMode(0);
      entry.newMode = walk.getFileMode(1);
      entry.newPath = entry.oldPath = walk.getPathString();

      if (treeFilterMarker != null)
        entry.treeFilterMarks = treeFilterMarker.getMarks(walk);

      if (entry.oldMode == FileMode.MISSING) {
        entry.oldPath = DiffEntry.DEV_NULL;
        entry.changeType = ChangeType.ADD;
        r.add(entry);
View Full Code Here

Examples of org.eclipse.jgit.treewalk.filter.TreeFilterMarker

    }
    else { // DiffEntry does not support walks with more than two trees
      final int nTree = walk.getTreeCount();
      final int myTree = nTree - 1;

      TreeFilterMarker treeFilterMarker = new TreeFilterMarker(
          markTreeFilters);

      while (walk.next()) {
        if (matchAnyParent(walk, myTree))
          continue;

        int treeFilterMarks = treeFilterMarker.getMarks(walk);

        final FileDiffForMerges d = new FileDiffForMerges(commit,
            treeFilterMarks);
        d.path = walk.getPathString();
        int m0 = 0;
View Full Code Here

Examples of org.eclipse.jgit.treewalk.filter.TreeFilterMarker

          JGitText.get().treeWalkMustHaveExactlyTwoTrees);
    if (includeTrees && walk.isRecursive())
      throw new IllegalArgumentException(
          JGitText.get().cannotBeRecursiveWhenTreesAreIncluded);

    TreeFilterMarker treeFilterMarker;
    if (markTreeFilters != null && markTreeFilters.length > 0)
      treeFilterMarker = new TreeFilterMarker(markTreeFilters);
    else
      treeFilterMarker = null;

    List<DiffEntry> r = new ArrayList<DiffEntry>();
    MutableObjectId idBuf = new MutableObjectId();
    while (walk.next()) {
      DiffEntry entry = new DiffEntry();

      walk.getObjectId(idBuf, 0);
      entry.oldId = AbbreviatedObjectId.fromObjectId(idBuf);

      walk.getObjectId(idBuf, 1);
      entry.newId = AbbreviatedObjectId.fromObjectId(idBuf);

      entry.oldMode = walk.getFileMode(0);
      entry.newMode = walk.getFileMode(1);
      entry.newPath = entry.oldPath = walk.getPathString();

      if (treeFilterMarker != null)
        entry.treeFilterMarks = treeFilterMarker.getMarks(walk);

      if (entry.oldMode == FileMode.MISSING) {
        entry.oldPath = DiffEntry.DEV_NULL;
        entry.changeType = ChangeType.ADD;
        r.add(entry);
View Full Code Here

Examples of org.eclipse.jgit.treewalk.filter.TreeFilterMarker

          JGitText.get().treeWalkMustHaveExactlyTwoTrees);
    if (includeTrees && walk.isRecursive())
      throw new IllegalArgumentException(
          JGitText.get().cannotBeRecursiveWhenTreesAreIncluded);

    TreeFilterMarker treeFilterMarker;
    if (markTreeFilters != null && markTreeFilters.length > 0)
      treeFilterMarker = new TreeFilterMarker(markTreeFilters);
    else
      treeFilterMarker = null;

    List<DiffEntry> r = new ArrayList<DiffEntry>();
    MutableObjectId idBuf = new MutableObjectId();
    while (walk.next()) {
      DiffEntry entry = new DiffEntry();

      walk.getObjectId(idBuf, 0);
      entry.oldId = AbbreviatedObjectId.fromObjectId(idBuf);

      walk.getObjectId(idBuf, 1);
      entry.newId = AbbreviatedObjectId.fromObjectId(idBuf);

      entry.oldMode = walk.getFileMode(0);
      entry.newMode = walk.getFileMode(1);
      entry.newPath = entry.oldPath = walk.getPathString();

      if (treeFilterMarker != null)
        entry.treeFilterMarks = treeFilterMarker.getMarks(walk);

      if (entry.oldMode == FileMode.MISSING) {
        entry.oldPath = DiffEntry.DEV_NULL;
        entry.changeType = ChangeType.ADD;
        r.add(entry);
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.