---
import type { Commit } from "@lib/git/types";
import { gitDir } from "@lib/git";
type Props = Commit;
const { hash, files, author, signature } = Astro.props;
const git = await gitDir;
---
Git commit info:
- Hash
- {hash}
- Files
{files.map((file) => - {file.pathname.replace(git, "")}
)}
- Author
- {author.name} <{author.email}>
{
signature && (
- Commit Signature
-
- Type
- {signature.type}
- Signer
- {signature.signerName}
- Key fingerprint
- {signature.keyFingerPrint}
)
}