History

Update Git documentation (2.30.0)

Simon Legner committed 5 years ago

Commit 3600a9f1 parent 8f17cfa41 files · +4398 −1Browse files

Showing the changes to node_modules/simple-git/src/responses/FileStatusSummary.js (1 of 41 files). Show all

Unified · Split

node_modules/simple-git/src/responses/FileStatusSummary.js+22−0
@@ -0,0 +1,22 @@
1'use strict';
2
3function FileStatusSummary (path, index, working_dir) {
4 this.path = path;
5 this.index = index;
6 this.working_dir = working_dir;
7
8 if ('R' === index + working_dir) {
9 var detail = FileStatusSummary.fromPathRegex.exec(path) || [null, path, path];
10 this.from = detail[1];
11 this.path = detail[2];
12 }
13}
14
15FileStatusSummary.fromPathRegex = /^(.+) -> (.+)$/;
16
17FileStatusSummary.prototype = {
18 path: '',
19 from: ''
20};
21
22module.exports = FileStatusSummary;