summaryrefslogtreecommitdiff
path: root/src/lib/git
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/git')
-rw-r--r--src/lib/git/log.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/git/log.ts b/src/lib/git/log.ts
index 86bbe7b..bcf6888 100644
--- a/src/lib/git/log.ts
+++ b/src/lib/git/log.ts
@@ -29,6 +29,7 @@ export async function getLastCommitForOneOfFiles(
"-1",
`--pretty=format:${format.map((x) => `%${x}`).join("%n")}`,
"--",
+ // deno-lint-ignore no-undef
...Iterator.from(files).map((x) => x.pathname),
],
});
@@ -59,6 +60,7 @@ export async function getLastCommitForOneOfFiles(
const raw = rawLines.join("\n").trim();
const commit: Commit = {
+ // deno-lint-ignore no-undef
files: await fileStatusFromCommit(hash, Iterator.from(files)),
hash: { long: hash, short: abbrHash },
author: {
@@ -112,6 +114,7 @@ async function fileStatusFromCommit(
return result.map((line) => {
const [status, path] = line.split("\t");
if (
+ // deno-lint-ignore no-undef
Iterator.from(files).some((file) =>
file.pathname.replace(dir.pathname, "").includes(path)
)