# [PATCH] bash completion: remove unused function _git_diff_tree

2 messages from 2008-08-02 to 2008-08-02. Participants: Lee Marlow, Shawn O. Pearce.
Thread: https://gitlist.dev/t/14804

## Lee Marlow, 2008-08-02 04:47

Subject: [PATCH] bash completion: remove unused function _git_diff_tree
Message-ID: <1217652429-58511-1-git-send-email-lee.marlow@gmail.com>
URL: https://gitlist.dev/e/1217652429-58511-1-git-send-email-lee.marlow%40gmail.com

```
completion for git diff-tree was removed in 5cfb4fe

Signed-off-by: Lee Marlow <lee.marlow@gmail.com>
---
 contrib/completion/git-completion.bash |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 30d8701..e32c1f1 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -721,11 +721,6 @@ _git_diff ()
 	__git_complete_file
 }
 
-_git_diff_tree ()
-{
-	__gitcomp "$(__git_refs)"
-}
-
 _git_fetch ()
 {
 	local cur="${COMP_WORDS[COMP_CWORD]}"
-- 
1.6.0.rc1.27.g9b6bf

```

## Shawn O. Pearce, 2008-08-02 20:59

Subject: Re: [PATCH] bash completion: remove unused function _git_diff_tree
Message-ID: <20080802205957.GB24723@spearce.org>
URL: https://gitlist.dev/e/20080802205957.GB24723%40spearce.org
In-Reply-To: <1217652429-58511-1-git-send-email-lee.marlow@gmail.com>

```
Lee Marlow <lee.marlow@gmail.com> wrote:
> completion for git diff-tree was removed in 5cfb4fe
> 
> Signed-off-by: Lee Marlow <lee.marlow@gmail.com>

Acked-by: Shawn O. Pearce <spearce@spearce.org>

> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 30d8701..e32c1f1 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -721,11 +721,6 @@ _git_diff ()
>  	__git_complete_file
>  }
>  
> -_git_diff_tree ()
> -{
> -	__gitcomp "$(__git_refs)"
> -}
> -
>  _git_fetch ()
>  {
>  	local cur="${COMP_WORDS[COMP_CWORD]}"
> -- 

-- 
Shawn.

```
