UNPKG

simple-git

Version:

Simple GIT interface for node.js

18 lines 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const parse_pull_1 = require("../parsers/parse-pull"); function pullTask(remote, branch, customArgs) { const commands = ['pull', ...customArgs]; if (remote && branch) { commands.splice(1, 0, remote, branch); } return { commands, format: 'utf-8', parser(stdOut, stdErr) { return parse_pull_1.parsePullResult(stdOut, stdErr); } }; } exports.pullTask = pullTask; //# sourceMappingURL=pull.js.map