threads / patch / 14804

patchbash completion: remove unused function _git_diff_tree

Subject: [PATCH] bash completion: remove unused function _git_diff_tree

## tl;dr

2 messages between Aug 2, 2008 and Aug 2, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Lee Marlow· Aug 2, 2008, 04:47 UTC · lore
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(-)
Show changes to contrib/completion/git-completion.bash +0 −5
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· Aug 2, 2008, 20:59 UTC · re: Lee Marlow · lore

Re: [PATCH] bash completion: remove unused function _git_diff_tree

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>
Show 17 quoted lines
> 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.

← back to recent threads