UNPKG

simple-git

Version:

Simple GIT interface for node.js

17 lines 603 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromPathRegex = /^(.+) -> (.+)$/; class FileStatusSummary { constructor(path, index, working_dir) { this.path = path; this.index = index; this.working_dir = working_dir; if ('R' === (index + working_dir)) { const detail = exports.fromPathRegex.exec(path) || [null, path, path]; this.from = detail[1] || ''; this.path = detail[2] || ''; } } } exports.FileStatusSummary = FileStatusSummary; //# sourceMappingURL=FileStatusSummary.js.map