Review note push
This commit is contained in:
@@ -75,6 +75,11 @@ cmd_latest() {
|
||||
printf '%s\n' "$best"
|
||||
}
|
||||
|
||||
cmd_push() {
|
||||
git rev-parse -q --verify "$NOTES_REF" >/dev/null || die "no review notes to push"
|
||||
git push "$REMOTE" "$NOTES_REF"
|
||||
}
|
||||
|
||||
main() {
|
||||
local cmd="${1:-}"
|
||||
if [ $# -gt 0 ]; then shift; fi
|
||||
@@ -82,6 +87,7 @@ main() {
|
||||
show) cmd_show "$@" ;;
|
||||
write) cmd_write "$@" ;;
|
||||
latest) cmd_latest "$@" ;;
|
||||
push) cmd_push "$@" ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user