Yatopia/scripts/commitup.sh

17 lines
352 B
Bash
Raw Normal View History

2020-02-26 17:23:57 +01:00
#!/usr/bin/env bash
(
set -e
PS1="$"
function changelog() {
base=$(git ls-tree HEAD $1 | cut -d' ' -f3 | cut -f1)
cd $1 && git log --oneline ${base}...HEAD
}
2020-03-21 17:29:35 +01:00
tuinity=$(changelog Tuinity)
2020-02-26 17:23:57 +01:00
2020-03-21 17:29:35 +01:00
log="Updated Tuinity \n\nUpdating our baseline Tuinity reference\n\nTuinity changes since last:\n$tuinity"
2020-02-26 17:23:57 +01:00
echo -e "$log" | git commit -F -
) || exit 1