var git = require( '../' );

var Oid = function(rawOid) {
  var self = {};

  if(rawOid instanceof git.raw.Oid) {
    self.oid = rawOid;
  } else {
    self.oid = new git.raw.Oid();
  }

  self.getRawOid = function() {
    return self.oid;
  };

  return self;
};

exports.oid = Oid;

var git = require( '../' );

/**
 * @param {git.raw.Oid|null} rawOid
 */
var Oid = function(rawOid) {
  if(rawOid instanceof git.raw.Oid) {
    this.rawOid = rawOid;
  }
};

/**
 * @return {git.raw.Oid}
 */
Oid.prototype.getRawoid = function() {
  return this.rawOid;
};

exports.oid = Oid;

Rewrite Oid js convenience wrapper.
Rewrite Oid js convenience wrapper.
