. ~/.profile.d/gentoo.sh
op=${0##*/}
-op=${op%-close}
+ops=( ${op//-/ } )
+op=${ops[0]}
tdir="${HOME}/.cache/bugz"
mkdir -p "${tdir}"
find "${tdir}" -mmin +30 -type f -delete
for (( n=0; n < ${#bugs[@]}; ++n )) ; do
b=${bugs[$n]}
c=${comments[$n]}
- run "$@" gbugz -q modify ${b} --fixed -c "\
+ local msg="Commit message: $c$(printf '\n%s' ${urls})"
+
+ case ${ops[1]} in
+ close)
+ run "$@" gbugz -q modify ${b} --fixed -c "\
should be all set now in the tree; thanks for the report!
-Commit message: $c$(printf '\n%s' ${urls})"
+${msg}"
+ ;;
+ comment)
+ run "$@" gbugz -q modify ${b} -c "${msg}"
+ ;;
+ esac
done
echo
}