Package org.eclipse.jgit.blame.Candidate

Examples of org.eclipse.jgit.blame.Candidate.BlobCandidate


   */
  public BlameGenerator push(String description, RawText contents)
      throws IOException {
    if (description == null)
      description = JGitText.get().blameNotCommittedYet;
    BlobCandidate c = new BlobCandidate(description, resultPath);
    c.sourceText = contents;
    c.regionList = new Region(0, 0, contents.size());
    remaining = contents.size();
    push(c);
    return this;
View Full Code Here


      throws IOException {
    ObjectLoader ldr = reader.open(id);
    if (ldr.getType() == OBJ_BLOB) {
      if (description == null)
        description = JGitText.get().blameNotCommittedYet;
      BlobCandidate c = new BlobCandidate(description, resultPath);
      c.sourceBlob = id.toObjectId();
      c.sourceText = new RawText(ldr.getCachedBytes(Integer.MAX_VALUE));
      c.regionList = new Region(0, 0, c.sourceText.size());
      remaining = c.sourceText.size();
      push(c);
      return this;
    }

    RevCommit commit = revPool.parseCommit(id);
    if (!find(commit, resultPath))
      return this;

    Candidate c = new Candidate(commit, resultPath);
    c.sourceBlob = idBuf.toObjectId();
    c.loadText(reader);
    c.regionList = new Region(0, 0, c.sourceText.size());
    remaining = c.sourceText.size();
    push(c);
    return this;
  }
View Full Code Here

   */
  public BlameGenerator push(String description, RawText contents)
      throws IOException {
    if (description == null)
      description = JGitText.get().blameNotCommittedYet;
    BlobCandidate c = new BlobCandidate(description, resultPath);
    c.sourceText = contents;
    c.regionList = new Region(0, 0, contents.size());
    remaining = contents.size();
    push(c);
    return this;
View Full Code Here

      throws IOException {
    ObjectLoader ldr = reader.open(id);
    if (ldr.getType() == OBJ_BLOB) {
      if (description == null)
        description = JGitText.get().blameNotCommittedYet;
      BlobCandidate c = new BlobCandidate(description, resultPath);
      c.sourceBlob = id.toObjectId();
      c.sourceText = new RawText(ldr.getCachedBytes(Integer.MAX_VALUE));
      c.regionList = new Region(0, 0, c.sourceText.size());
      remaining = c.sourceText.size();
      push(c);
      return this;
    }

    RevCommit commit = revPool.parseCommit(id);
    if (!find(commit, resultPath))
      return this;

    Candidate c = new Candidate(commit, resultPath);
    c.sourceBlob = idBuf.toObjectId();
    c.loadText(reader);
    c.regionList = new Region(0, 0, c.sourceText.size());
    remaining = c.sourceText.size();
    push(c);
    return this;
  }
View Full Code Here

   */
  public BlameGenerator push(String description, RawText contents)
      throws IOException {
    if (description == null)
      description = JGitText.get().blameNotCommittedYet;
    BlobCandidate c = new BlobCandidate(description, resultPath);
    c.sourceText = contents;
    c.regionList = new Region(0, 0, contents.size());
    remaining = contents.size();
    push(c);
    return this;
View Full Code Here

      throws IOException {
    ObjectLoader ldr = reader.open(id);
    if (ldr.getType() == OBJ_BLOB) {
      if (description == null)
        description = JGitText.get().blameNotCommittedYet;
      BlobCandidate c = new BlobCandidate(description, resultPath);
      c.sourceBlob = id.toObjectId();
      c.sourceText = new RawText(ldr.getCachedBytes(Integer.MAX_VALUE));
      c.regionList = new Region(0, 0, c.sourceText.size());
      remaining = c.sourceText.size();
      push(c);
      return this;
    }

    RevCommit commit = revPool.parseCommit(id);
    if (!find(commit, resultPath))
      return this;

    Candidate c = new Candidate(commit, resultPath);
    c.sourceBlob = idBuf.toObjectId();
    c.loadText(reader);
    c.regionList = new Region(0, 0, c.sourceText.size());
    remaining = c.sourceText.size();
    push(c);
    return this;
  }
View Full Code Here

   */
  public BlameGenerator push(String description, RawText contents)
      throws IOException {
    if (description == null)
      description = JGitText.get().blameNotCommittedYet;
    BlobCandidate c = new BlobCandidate(description, resultPath);
    c.sourceText = contents;
    c.regionList = new Region(0, 0, contents.size());
    remaining = contents.size();
    push(c);
    return this;
View Full Code Here

      throws IOException {
    ObjectLoader ldr = reader.open(id);
    if (ldr.getType() == OBJ_BLOB) {
      if (description == null)
        description = JGitText.get().blameNotCommittedYet;
      BlobCandidate c = new BlobCandidate(description, resultPath);
      c.sourceBlob = id.toObjectId();
      c.sourceText = new RawText(ldr.getCachedBytes(Integer.MAX_VALUE));
      c.regionList = new Region(0, 0, c.sourceText.size());
      remaining = c.sourceText.size();
      push(c);
      return this;
    }

    RevCommit commit = revPool.parseCommit(id);
    if (!find(commit, resultPath))
      return this;

    Candidate c = new Candidate(commit, resultPath);
    c.sourceBlob = idBuf.toObjectId();
    c.loadText(reader);
    c.regionList = new Region(0, 0, c.sourceText.size());
    remaining = c.sourceText.size();
    push(c);
    return this;
  }
View Full Code Here

   */
  public BlameGenerator push(String description, RawText contents)
      throws IOException {
    if (description == null)
      description = JGitText.get().blameNotCommittedYet;
    BlobCandidate c = new BlobCandidate(description, resultPath);
    c.sourceText = contents;
    c.regionList = new Region(0, 0, contents.size());
    remaining = contents.size();
    push(c);
    return this;
View Full Code Here

      throws IOException {
    ObjectLoader ldr = reader.open(id);
    if (ldr.getType() == OBJ_BLOB) {
      if (description == null)
        description = JGitText.get().blameNotCommittedYet;
      BlobCandidate c = new BlobCandidate(description, resultPath);
      c.sourceBlob = id.toObjectId();
      c.sourceText = new RawText(ldr.getCachedBytes(Integer.MAX_VALUE));
      c.regionList = new Region(0, 0, c.sourceText.size());
      remaining = c.sourceText.size();
      push(c);
      return this;
    }

    RevCommit commit = revPool.parseCommit(id);
    if (!find(commit, resultPath))
      return this;

    Candidate c = new Candidate(commit, resultPath);
    c.sourceBlob = idBuf.toObjectId();
    c.loadText(reader);
    c.regionList = new Region(0, 0, c.sourceText.size());
    remaining = c.sourceText.size();
    push(c);
    return this;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.blame.Candidate.BlobCandidate

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.