You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
334 B
14 lines
334 B
const gitlog = require("gitlog").default;
|
|
|
|
let parentFolder = __dirname.split("/");
|
|
parentFolder.pop();
|
|
parentFolder = parentFolder.join("/");
|
|
console.log(parentFolder);
|
|
|
|
const commits = gitlog({
|
|
repo: __dirname,
|
|
number: 20,
|
|
fields: ["hash", "abbrevHash", "subject", "authorName", "authorDateRel"],
|
|
});
|
|
|
|
//console.log(commits);
|
|
|