{"thread":{"id":"3759","subject":"[PATCH] Make git-clone to take long double-dashed origin option (--origin)","startedAt":"2006-03-30T17:00:43Z","lastAt":"2006-03-30T17:00:43Z","messageCount":1,"participants":["Yasushi SHOJI"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"18149","messageId":"87ek0jyiju.wl@mail2.atmark-techno.com","threadId":"3759","inReplyTo":null,"subject":"[PATCH] Make git-clone to take long double-dashed origin option (--origin)","fromName":"Yasushi SHOJI","fromEmail":"yashi@atmark-techno.com","sentAt":"2006-03-30T17:00:43Z","receivedAt":"2006-03-30T17:00:43Z","isPatch":true,"sender":{"key":"yashi@atmark-techno.com","avatar":"https://gravatar.com/avatar/4817e8703ac4379935834d87453faa9d0c94b9dc19d83fcc54c67875eb133e59?d=mp&s=160"},"body":"Subject: [PATCH] Make git-clone to take long double-dashed origin option (--origin)\n\ngit-clone currently take option '-o' to specify origin.  this patch\nmakes git-clone to take double-dashed option '--origin' and other\nabbreviations in addtion to the current single-dashed option.\n\nSigned-off-by: Yasushi SHOJI <yashi@atmark-techno.com>\n\n\n---\n\n git-clone.sh |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\n6585a854a571f3978652c06cc746b3d9e501359d\ndiff --git a/git-clone.sh b/git-clone.sh\nindex 6887321..a731d15 100755\n--- a/git-clone.sh\n+++ b/git-clone.sh\n@@ -9,7 +9,7 @@ # See git-sh-setup why.\n unset CDPATH\n \n usage() {\n-\techo >&2 \"Usage: $0 [--use-separate-remote] [--reference <reference-repo>] [--bare] [-l [-s]] [-q] [-u <upload-pack>] [-o <name>] [-n] <repo> [<dir>]\"\n+\techo >&2 \"Usage: $0 [--use-separate-remote] [--reference <reference-repo>] [--bare] [-l [-s]] [-q] [-u <upload-pack>] [--origin <name>] [-n] <repo> [<dir>]\"\n \texit 1\n }\n \n@@ -127,7 +127,7 @@ while\n \t\tshift; reference=\"$1\" ;;\n \t*,--reference=*)\n \t\treference=`expr \"$1\" : '--reference=\\(.*\\)'` ;;\n-\t*,-o)\n+\t*,-o|*,--or|*,--ori|*,--orig|*,--origi|*,--origin)\n \t\tcase \"$2\" in\n \t\t*/*)\n \t\t    echo >&2 \"'$2' is not suitable for an origin name\"\n@@ -138,7 +138,7 @@ while\n \t\t    exit 1\n \t\t}\n \t\ttest -z \"$origin_override\" || {\n-\t\t    echo >&2 \"Do not give more than one -o options.\"\n+\t\t    echo >&2 \"Do not give more than one --origin options.\"\n \t\t    exit 1\n \t\t}\n \t\torigin_override=yes\n@@ -160,7 +160,7 @@ if test yes = \"$bare\"\n then\n \tif test yes = \"$origin_override\"\n \tthen\n-\t\techo >&2 '--bare and -o $origin options are incompatible.'\n+\t\techo >&2 '--bare and --origin $origin options are incompatible.'\n \t\texit 1\n \tfi\n \tif test t = \"$use_separate_remote\"\n-- \n1.3.0.rc1.gb8abc\n"}]}