mirror of
https://github.com/bakhirev/assayo.git
synced 2024-11-16 16:21:41 +00:00
update
This commit is contained in:
parent
a9619a2d18
commit
3cca9c7fa7
|
@ -13,6 +13,11 @@ let prevDate = new Date();
|
|||
|
||||
let refTimestampTime = {};
|
||||
|
||||
export function clearCache() {
|
||||
prevDate = new Date();
|
||||
refTimestampTime = {};
|
||||
}
|
||||
|
||||
export default function getCommitInfo(
|
||||
logString: string,
|
||||
refEmailAuthor: IHashMap<string>,
|
||||
|
|
|
@ -3,7 +3,7 @@ import ICommit, { IFileChange, ISystemCommit } from 'ts/interfaces/Commit';
|
|||
import IHashMap from 'ts/interfaces/HashMap';
|
||||
import { ONE_DAY, ONE_WEEK } from 'ts/helpers/formatter';
|
||||
|
||||
import getCommitInfo from './getCommitInfo';
|
||||
import getCommitInfo, { clearCache } from './getCommitInfo';
|
||||
import { getInfoFromPath, getNumStatInfo, getRawInfo } from './getFileChanges';
|
||||
|
||||
function updateLineTotal(commit: any, line: any) {
|
||||
|
@ -21,6 +21,7 @@ export default function Parser(report: string[]) {
|
|||
let fileChanges: IFileChange | null = null;
|
||||
|
||||
let firstMonday = 0;
|
||||
clearCache();
|
||||
|
||||
for (let i = 0, l = report.length; i < l; i += 1) {
|
||||
const message = report[i];
|
||||
|
|
Loading…
Reference in a new issue