create git hooks that dynamically update the sha512sums of local files #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For example, given a local file in an butane template such as any
.bu
file in ./butane/Write a script (using
yq
andsha512sum
) that can be invoked prior to commiting that will update the relevantstorage.files.path.contents.verification.hash
to whatever sha512sum for the file which currently exists in the correspondingstorage.files.path.contents.local
dir.Good issue for someone wanting to dip their toes into githooks, yq, or butane.
ref:
hell, even a normal script would be chill, there's a script do to this (sortof) on here: https://awasu.com/weblog/k3s-coreos/install-coreos/