From 79fd506d30eef3d113f4a8e3ab9ebd9004f1e8cc Mon Sep 17 00:00:00 2001 From: João Augusto Costa Branco Marado Torres Date: Sat, 28 Jun 2025 18:14:22 -0300 Subject: feat: index page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Augusto Costa Branco Marado Torres --- src/lib/git/log.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/git/log.ts') 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) ) -- cgit v1.2.3