Package org.eclipse.jgit.revwalk

Examples of org.eclipse.jgit.revwalk.RevWalk.dispose()


        return !(rw.parseAny(tag.getObject()) instanceof RevCommit);
      } catch (IOException e) {
        Activator.logError(e.getMessage(), e);
      } finally {
        rw.dispose();
      }
    }

    return false;
  }
View Full Code Here


        boolean contained = walk.isMergedInto(commit, refCommit);
        if (contained)
          return true;
      }
    } finally {
      walk.dispose();
    }
    return false;
  }

}
View Full Code Here

    try {
      tw = TreeWalk.forPath(repository, path, rw.parseTree(headId));
      return tw != null;
    } finally {
      rw.release();
      rw.dispose();
      if (tw != null)
        tw.release();
    }
  }
View Full Code Here

          parentCommit, pathFilter, commit.direction);

      if (commit.children != null)
        result.add(commit);
    }
    rw.dispose();

    return result;
  }

  private static RevCommit getParentCommit(RevCommit commit) {
View Full Code Here

        setResolved(null, null, null, ""); //$NON-NLS-1$
        return;
      } finally {
        if (reader != null)
          reader.release();
        rw.dispose();
      }
      RevTree treeId = baselineCommit.getTree();
      if (treeId.equals(lastTree)) {
        if (GitTraceLocation.QUICKDIFF.isActive())
          GitTraceLocation.getTrace().trace(
View Full Code Here

                writer.addProperty(GitLexicon.OBJECT_ID, objId.name());
                writer.addProperty(GitLexicon.TREE, GitTree.referenceToTree(objId, objId.name(), values));
                writer.addProperty(GitLexicon.HISTORY, GitHistory.referenceToHistory(objId, branchName, values));
                writer.addProperty(GitLexicon.DETAIL, GitCommitDetails.referenceToCommit(objId, values));
            } finally {
                walker.dispose();
            }
        } else {
            return null;
        }
View Full Code Here

                writer.addProperty(GitLexicon.TITLE, commit.getShortMessage());
                writer.addProperty(GitLexicon.TREE, GitTree.referenceToTree(objId, objId.name(), values));
                writer.addProperty(GitLexicon.DETAIL, GitCommitDetails.referenceToCommit(objId, values));
                // And there are no children
            } finally {
                walker.dispose();
            }
        } else {
            return null;
        }
View Full Code Here

                List<DiffEntry> differences = computeDifferences(commit, walker, repository);
                String patchFile = computePatch(differences, repository);
                writer.addProperty(GitLexicon.DIFF, patchFile);

            } finally {
                walker.dispose();
            }
        } else {
            return null;
        }
View Full Code Here

                writer.addProperty(GitLexicon.OBJECT_ID, objId.name());
                writer.addProperty(GitLexicon.TREE, GitTree.referenceToTree(objId, objId.name(), values));
                writer.addProperty(GitLexicon.HISTORY, GitHistory.referenceToHistory(objId, tagName, values));
                writer.addProperty(GitLexicon.DETAIL, GitCommitDetails.referenceToCommit(objId, values));
            } finally {
                walker.dispose();
            }
        } else {
            return null;
        }
View Full Code Here

                // Add the top-level children of the directory ...
                addInformationForPath(repository, git, writer, commit, "", spec, values);

            } finally {
                walker.dispose();
            }

        } else {
            // This is a folder or file within the directory structure ...
            String branchOrTagOrObjectId = spec.parameter(0);
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.