# [PATCH] completion: add options --single-branch and --branch to "git clone"

2 messages from 2012-11-28 to 2012-11-28. Participants: Ralf Thielow, Junio C Hamano.
Thread: https://gitlist.dev/t/32229

## Ralf Thielow, 2012-11-28 18:27

Subject: [PATCH] completion: add options --single-branch and --branch to "git clone"
Message-ID: <1354127222-5569-1-git-send-email-ralf.thielow@gmail.com>
URL: https://gitlist.dev/e/1354127222-5569-1-git-send-email-ralf.thielow%40gmail.com

```
Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
---
 contrib/completion/git-completion.bash | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 48c3abd..cda095d 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -989,6 +989,8 @@ _git_clone ()
 			--upload-pack
 			--template=
 			--depth
+			--single-branch
+			--branch
 			"
 		return
 		;;
-- 
1.8.0

```

## Junio C Hamano, 2012-11-28 18:57

Subject: Re: [PATCH] completion: add options --single-branch and --branch to "git clone"
Message-ID: <7vfw3tv9m3.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vfw3tv9m3.fsf%40alter.siamese.dyndns.org
In-Reply-To: <1354127222-5569-1-git-send-email-ralf.thielow@gmail.com>

```
Ralf Thielow <ralf.thielow@gmail.com> writes:

> Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
> ---
>  contrib/completion/git-completion.bash | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 48c3abd..cda095d 100644
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -989,6 +989,8 @@ _git_clone ()
>  			--upload-pack
>  			--template=
>  			--depth
> +			--single-branch
> +			--branch
>  			"

Hmph.... OK, will queue.

```
