nodegit
Version:
Node.js libgit2 asynchronous native bindings
25 lines (20 loc) • 453 B
JavaScript
;
var NodeGit = require("../");
var Oid = NodeGit.Oid;
// Backwards compatibility.
Object.defineProperties(Oid.prototype, {
"allocfmt": {
value: Oid.prototype.tostrS,
enumerable: false
},
"toString": {
value: Oid.prototype.tostrS,
enumerable: false
}
});
Oid.prototype.copy = function () {
return this.cpy(); // seriously???
};
Oid.prototype.inspect = function () {
return "[Oid " + this.allocfmt() + "]";
};