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);