From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yasushi SHOJI Subject: [PATCH] Make git-clone to take long double-dashed origin option (--origin) Date: Thu, 30 Mar 2006 17:00:43 +0000 (UTC) Message-ID: <87ek0jyiju.wl@mail2.atmark-techno.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-From: git-owner@vger.kernel.org Thu Mar 30 19:00:41 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FP0Va-0007xc-S1 for gcvg-git@gmane.org; Thu, 30 Mar 2006 19:00:31 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932251AbWC3RAP (ORCPT ); Thu, 30 Mar 2006 12:00:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932252AbWC3RAP (ORCPT ); Thu, 30 Mar 2006 12:00:15 -0500 Received: from shop.atmark-techno.com ([210.191.215.173]:7148 "EHLO mail2.atmark-techno.com") by vger.kernel.org with ESMTP id S932251AbWC3RAN (ORCPT ); Thu, 30 Mar 2006 12:00:13 -0500 Received: from smtp.local-network (dns1.atmark-techno.com [210.191.215.170]) by mail2.atmark-techno.com (Postfix) with ESMTP id 133A14CCF; Fri, 31 Mar 2006 02:00:11 +0900 (JST) Received: from localhost.atmark-techno.com (unknown [192.168.10.81]) by smtp.local-network (Postfix) with ESMTP id 33435B61F; Fri, 31 Mar 2006 02:05:24 +0900 (JST) To: git@vger.kernel.org User-Agent: Wanderlust/2.14.0 Date: Thu Mar 30 23:48:09 2006 +0900 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Subject: [PATCH] Make git-clone to take long double-dashed origin option (--origin) git-clone currently take option '-o' to specify origin. this patch makes git-clone to take double-dashed option '--origin' and other abbreviations in addtion to the current single-dashed option. Signed-off-by: Yasushi SHOJI --- git-clone.sh | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) 6585a854a571f3978652c06cc746b3d9e501359d diff --git a/git-clone.sh b/git-clone.sh index 6887321..a731d15 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -9,7 +9,7 @@ # See git-sh-setup why. unset CDPATH usage() { - echo >&2 "Usage: $0 [--use-separate-remote] [--reference ] [--bare] [-l [-s]] [-q] [-u ] [-o ] [-n] []" + echo >&2 "Usage: $0 [--use-separate-remote] [--reference ] [--bare] [-l [-s]] [-q] [-u ] [--origin ] [-n] []" exit 1 } @@ -127,7 +127,7 @@ while shift; reference="$1" ;; *,--reference=*) reference=`expr "$1" : '--reference=\(.*\)'` ;; - *,-o) + *,-o|*,--or|*,--ori|*,--orig|*,--origi|*,--origin) case "$2" in */*) echo >&2 "'$2' is not suitable for an origin name" @@ -138,7 +138,7 @@ while exit 1 } test -z "$origin_override" || { - echo >&2 "Do not give more than one -o options." + echo >&2 "Do not give more than one --origin options." exit 1 } origin_override=yes @@ -160,7 +160,7 @@ if test yes = "$bare" then if test yes = "$origin_override" then - echo >&2 '--bare and -o $origin options are incompatible.' + echo >&2 '--bare and --origin $origin options are incompatible.' exit 1 fi if test t = "$use_separate_remote" -- 1.3.0.rc1.gb8abc