diff options
Diffstat (limited to 'packages/server/src/routes/api/v1/repo/map.ts')
-rw-r--r-- | packages/server/src/routes/api/v1/repo/map.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/server/src/routes/api/v1/repo/map.ts b/packages/server/src/routes/api/v1/repo/map.ts deleted file mode 100644 index a544d1a..0000000 --- a/packages/server/src/routes/api/v1/repo/map.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Commit } from "../../../../git/commit"; -import { LogCommit } from "api"; - -export async function commitMap(commit: Commit): Promise<LogCommit> { - const stats = await commit.stats(); - - const is_signed = await commit.isSigned(); - - return <LogCommit>{ - id: commit.id, - author: { - name: commit.author().name, - email: commit.author().email, - fingerprint: await commit.author().fingerprint().catch(() => null) - }, - isSigned: is_signed, - signatureVerified: is_signed ? await commit.verifySignature().catch(() => false) : null, - message: commit.message, - date: commit.date, - insertions: stats.insertions, - deletions: stats.deletions, - files_changed: stats.files_changed - }; -}
\ No newline at end of file |