From f96769f2226a1e8f45c75deed3acb9ac2c7d3373 Mon Sep 17 00:00:00 2001 From: hyphen-o Date: Thu, 3 Oct 2024 11:43:25 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=83=91?= =?UTF-8?q?=E3=82=B9=E3=81=AE=E3=83=AA=E3=82=B9=E3=83=88=E3=82=92=E5=8F=96?= =?UTF-8?q?=E5=BE=97=E3=81=99=E3=82=8B=E3=81=9F=E3=82=81=E3=81=AE=E9=96=A2?= =?UTF-8?q?=E6=95=B0=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/git-index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/git-index.ts b/src/models/git-index.ts index e20ccd1..85bfab3 100644 --- a/src/models/git-index.ts +++ b/src/models/git-index.ts @@ -36,6 +36,10 @@ export class GitIndex { this.entries = []; }; + public getFilePaths = (): Array => { + return this.entries.map((entry) => entry.filePath); + }; + public pushEntry = async (filePath: string, hash: string): Promise => { const fileStat = await stat(filePath);