Show last overall commit (not per-file)

This commit is contained in:
David Eisinger
2023-03-06 12:00:01 -05:00
parent b66b626fd3
commit 49fed6b379
2 changed files with 9 additions and 3 deletions

6
bin/get-last-commit.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
export HUGOxPARAMSxGITxLAST_COMMITxAUTHORNAME=$(git log -1 --format=%an)
export HUGOxPARAMSxGITxLAST_COMMITxDATE=$(git log -1 --format=%cI)
export HUGOxPARAMSxGITxLAST_COMMITxHASH=$(git log -1 --format=%H)
export HUGOxPARAMSxGITxLAST_COMMITxSUBJECT=$(git log -1 --format=%s)