lib/pre-commit/pre-commit-base.js
function read() {
	var filename = process.argv[2],
		src = fs.readFileSync(process.argv[3], "utf8");

	// attempt to modify any src passing through the pre-commit hook
	try {
		src = require(path.join(process.cwd(), ".git-hooks/pre-commit-plugins/pre-commit-modifier"))(filename, src);
	} catch (e) {
		// empty
	}
	// filename, src
	return Bluebird.resolve({
		filename : filename,
		src : src
	});
}
function read() {
	var filename = process.argv[2],
		src = fs.readFileSync(process.argv[3], "utf8");

	// attempt to modify any src passing through the pre-commit hook
	try {
		src = require(path.join(process.cwd(), ".git-hooks/pre-commit-plugins/pre-commit-modifier"))(filename, src);
	} catch (e) {
		// empty
	}
	// filename, src
	return Bluebird.resolve({
		filename : filename,
		src : src
	});
}
Get file contents and file name from process.argv
@returns {Promise.<{filename: *, src}>|String|*}