Example usage for org.eclipse.jgit.lib AnyObjectId copyRawTo

List of usage examples for org.eclipse.jgit.lib AnyObjectId copyRawTo

Introduction

In this page you can find the example usage for org.eclipse.jgit.lib AnyObjectId copyRawTo.

Prototype

public void copyRawTo(int[] b, int o) 

Source Link

Document

Copy this ObjectId to an int array.

Usage

From source file:org.gitective.core.filter.commit.CommitImpact.java

License:Open Source License

/**
 * Create impact/*from w  ww  .j  a  va 2s.c om*/
 *
 * @param commit
 * @param add
 * @param edit
 * @param delete
 */
public CommitImpact(AnyObjectId commit, int add, int edit, int delete) {
    this.commit = new byte[OBJECT_ID_LENGTH];
    commit.copyRawTo(this.commit, 0);
    this.add = add;
    this.edit = edit;
    this.delete = delete;
}