{"thread":{"id":"5091","subject":"[PATCH] git-push: remove obsolete git-push.sh","startedAt":"2006-08-02T15:37:42Z","lastAt":"2006-08-02T15:37:42Z","messageCount":1,"participants":["Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"24563","messageId":"20060802153742.GA12794@coredump.intra.peff.net","threadId":"5091","inReplyTo":null,"subject":"[PATCH] git-push: remove obsolete git-push.sh","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2006-08-02T15:37:42Z","receivedAt":"2006-08-02T15:37:42Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"This was converted to a C builtin over three months ago.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\n git-push.sh |   87 -----------------------------------------------------------\n 1 files changed, 0 insertions(+), 87 deletions(-)\n\ndiff --git a/git-push.sh b/git-push.sh\ndeleted file mode 100755\nindex 21775fc..0000000\n--- a/git-push.sh\n+++ /dev/null\n@@ -1,87 +0,0 @@\n-#!/bin/sh\n-\n-USAGE='[--all] [--tags] [--force] <repository> [<refspec>...]'\n-. git-sh-setup\n-\n-# Parse out parameters and then stop at remote, so that we can\n-# translate it using .git/branches information\n-has_all=\n-has_force=\n-has_exec=\n-has_thin=--thin\n-remote=\n-do_tags=\n-\n-while case \"$#\" in 0) break ;; esac\n-do\n-\tcase \"$1\" in\n-\t--all)\n-\t\thas_all=--all ;;\n-\t--tags)\n-\t\tdo_tags=yes ;;\n-\t--force)\n-\t\thas_force=--force ;;\n-\t--exec=*)\n-\t\thas_exec=\"$1\" ;;\n-\t--thin)\n-\t\t;; # noop\n-\t--no-thin)\n-\t\thas_thin= ;;\n-\t-*)\n-                usage ;;\n-        *)\n-\t\tset x \"$@\"\n-\t\tshift\n-\t\tbreak ;;\n-\tesac\n-\tshift\n-done\n-case \"$#\" in\n-0)\n-\techo \"Where would you want to push today?\"\n-        usage ;;\n-esac\n-\n-. git-parse-remote\n-remote=$(get_remote_url \"$@\")\n-\n-case \"$has_all\" in\n---all)\n-\tset x ;;\n-'')\n-\tcase \"$do_tags,$#\" in\n-\tyes,1)\n-\t\tset x $(cd \"$GIT_DIR/refs\" && find tags -type f -print) ;;\n-\tyes,*)\n-\t\tset x $(cd \"$GIT_DIR/refs\" && find tags -type f -print) \\\n-\t\t    $(get_remote_refs_for_push \"$@\") ;;\n-\t,*)\n-\t\tset x $(get_remote_refs_for_push \"$@\") ;;\n-\tesac\n-esac\n-\n-shift ;# away the initial 'x'\n-\n-# $# is now 0 if there was no explicit refspec on the command line\n-# and there was no default refspec to push from remotes/ file.\n-# we will let git-send-pack to do its \"matching refs\" thing.\n-\n-case \"$remote\" in\n-git://*)\n-\tdie \"Cannot use READ-ONLY transport to push to $remote\" ;;\n-rsync://*)\n-        die \"Pushing with rsync transport is deprecated\" ;;\n-esac\n-\n-set x \"$remote\" \"$@\"; shift\n-test \"$has_all\" && set x \"$has_all\" \"$@\" && shift\n-test \"$has_force\" && set x \"$has_force\" \"$@\" && shift\n-test \"$has_exec\" && set x \"$has_exec\" \"$@\" && shift\n-test \"$has_thin\" && set x \"$has_thin\" \"$@\" && shift\n-\n-case \"$remote\" in\n-http://* | https://*)\n-\texec git-http-push \"$@\";;\n-*)\n-\texec git-send-pack \"$@\";;\n-esac\n-- \n1.4.2.rc2.g822a-dirty\n"}]}