From 23505f6c31c7cc903e63621b52b5f92eea1facc5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 22 Sep 2025 22:29:45 +0100 Subject: [PATCH] Automatically push committed changes Signed-off-by: Oliver Davies --- zet | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/zet b/zet index e2393db..661aefc 100755 --- a/zet +++ b/zet @@ -14,7 +14,6 @@ Usage: zet id QUERY... : Search for a zettel and display its ID zet latest : Edit the latest zettel zet print|p QUERY... : Search for a zettel and print it - zet push : Push changes zet view|v QUERY... : Search for a zettel and view it zet QUERY... : Print IDs and titles of zettels matching QUERY @@ -52,10 +51,6 @@ cmd_links() { generate_links "$(cmd_search "$QUERY")" } -cmd_push() { - git push -} - cmd_search() { parse_zet_list < <(search_zettel "$@") printf "%s\n" "${ZET_LIST[@]}" @@ -83,6 +78,7 @@ commit_zettel() { git add "$ZID" git commit -m "$MESSAGE" + git push } create_zettel() { @@ -160,10 +156,6 @@ main() { cmd_links "$@" ;; - push) - cmd_push - ;; - view | v) shift 1 cmd_view "$@"