@git-temporal/git-log-scraper
Version:
Scrapes commit data from the git cli for a file or directory in a repository and returns an array of Javascript objects representing commits with files and lines added and deleted.
20 lines (17 loc) • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const gitLogScraper_1 = require("./gitLogScraper");
const HELP = `
Dumps git commit range for a file or directory.
usage:
node lib/gitCommitRange.js path
`;
debugger;
const path = process.argv[2];
if (!path || path === '--help') {
console.log(HELP);
process.exit(1);
}
const commitRange = gitLogScraper_1.getCommitRange(path);
console.log(JSON.stringify(commitRange, null, 2));