parseGitLog #
Turns the output of the git log call of readGitLastUpdated into last commit times, keyed by absolute path.
Usage #
TypeScript
import { parseGitLog } from 'kawapress/generator'
const times = parseGitLog('', '/site')
Parameters
outputstring
The output of the git log call.
siteRootstring
Absolute path of the site root.
Returns Last commit times in milliseconds, by absolute path.
Full type signature
TypeScript
function parseGitLog(output: string, siteRoot: string): Map<string, number>

Comments