git_hash_local

PlasmaCalcs.tools.history.git_hash_local(*, default=UNSET)

returns the git commit hash for current git HEAD within the local directory

default: any object

if not UNSET, and can’t get hash (but filepath does exist),
return default & print message, instead of crashing if can’t get hash.