This commit is contained in:
Marc Beninca 2024-12-01 17:59:08 +01:00
parent 038853e4bb
commit 81cb56bd11
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -533,3 +533,14 @@ a__git_tag_delete() {
--delete \
"${@}"
}
# update head ref
gurh() { a__git_update_ref_head "${@}"; }
a__git_update_ref_head() {
if [ "${2}" ]; then
git \
update-ref \
"refs/heads/${1}" \
"${2}"
fi
}