AuraRepo > Commit [392f0a7]

Christian Lee Seibold

Thu February 20, 2025 12:59 AM -0600

Show PGP signature on commit details page, if available.


 git.go | 5 ++++-

Commit Hash: 392f0a791a89f911751b5e16e9a10e7074d6cfaa

Tree Hash: 68ded745b1422f10959ca5ddbe1ddb6939fa2245

Date: 2025-02-20T00:59:58-06:00

PGP Signature: -----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSghH500ekD7Pc/Zj6PbjnL2ZXQ4AUCZ7bS7gAKCRCPbjnL2ZXQ

4EgEAQDaq3FeWp5coLfiR6Sxmqsta/Ngrb4ha+9DfE3QXDzRpAEAjKi+v7seg057

VtnzpfuFS2JBfifmx09frk0H/qg61gY=

=ERch

-----END PGP SIGNATURE-----

Browse Tree
Parent e9f09d6
Commits
Repo Home

Changes

git.go

   ... | ...
   306 | 
   307 | 	// Extra commit details
   308 | 	request.Gemini(fmt.Sprintf("Commit Hash: %s\n", commit.Hash.String()))
   309 | 	request.Gemini(fmt.Sprintf("Tree Hash: %s\n", commit.TreeHash.String()))
   310 | 	request.Gemini(fmt.Sprintf("Date: %s\n", commit.Committer.When.Format(time.RFC3339))) // TODO: Author Date could be different from Comitter Date
-  311 | 	// TODO: PGP Verification
+  311 | 	if commit.PGPSignature != "" {
+  312 | 		// TODO: PGP Verification
+  313 | 		request.Gemini(fmt.Sprintf("PGP Signature: %s\n", commit.PGPSignature))
+  314 | 	}
   312 | 	// TODO: Branches containing commit
   313 | 	// TODO: Show any tags that link to this commit
   314 | 	request.Gemini("\n")
   315 | 
   316 | 	// Link to file tree at commit