ogit
Version:
A lazy developer's Git CLI made simple. Makes using git on cloud IDEs (i.e. C9) a walk in the park.
22 lines (21 loc) • 563 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const uuid = require("uuid/v4");
class GitFile {
constructor(path, workingDir, index) {
this.path = undefined;
this.workingDir = undefined;
this.index = undefined;
this.id = uuid();
this.path = path;
this.workingDir = workingDir;
this.index = index;
}
get changeType() {
if (this.workingDir === ' ') {
return this.index;
}
return this.workingDir;
}
}
exports.GitFile = GitFile;