#! /bin/bash

cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null

msg=$(zenity --entry)
[[ -z $msg ]] && exit

cd ovrlay/save/savedata
git commit -m "$msg" . || git commit --amend -m "$msg" ||
    zenity --error --text="Commit failed"
