hologit
Version:
Hologit automates the projection of layered composite file trees based on flat, declarative plans
21 lines (14 loc) • 369 B
JavaScript
class CommitObject {
constructor (repo, { hash, mode }) {
this.repo = repo;
this.hash = hash;
if (mode) {
this.mode = mode;
};
Object.freeze(this);
}
}
CommitObject.prototype.isCommit = true;
CommitObject.prototype.type = 'commit';
CommitObject.prototype.mode = '160000';
module.exports = CommitObject;