How to use the simple-git/src/git._appendOptions function in simple-git

To help you get started, we’ve selected a few simple-git examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github materiahq / materia-server / src / lib / patches / git / ListLogSummary.js View on Github external
command.push(opt.from + "..." + opt.to);
	}

	if (opt.file) {
		command.push("--follow", options.file);
	}

	if (opt.n || opt['max-count']) {
		command.push("--max-count=" + (opt.n || opt['max-count']));
	}

	'splitter n max-count file from to --pretty format'.split(' ').forEach(function (key) {
		delete opt[key];
	});

	Git._appendOptions(command, opt);

	return this._run(command, function (err, data) {
		handler && handler(err, !err && ListLogSummary.parse(data, splitter, fields));
	});
};