kudo
Version:
check someone's code quality in git repository
19 lines (16 loc) • 480 B
JavaScript
/**
* @file 以特定格式列出提交日志
* @author chris<wfsr@foxmail.com>
*/
import {git} from './git';
import Commit from './commit';
/**
* 从 git-log 输出中分析所有提交
*
* @param {string} name 提交代码的作者名字
* @param {string} since git 格式的时间段表示
*/
export default function (name, since) {
return git.run('log', '--author=' + name, '--since=\'' + since + '\'', '--pretty=format:%h,%ad')
.then(Commit.parse);
};