git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/6] completion: bash: remove zsh wrapper

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 30, 2014, 11:07 UTC
Message-ID
<1398856065-2982-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1398856065-2982-1-git-send-email-felipe.contreras@gmail.com>
It has been deprecated for one year and a half. It's time to move on.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 contrib/completion/git-completion.bash | 64 ----------------------------------
 1 file changed, 64 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 6e331d2..be0ea36 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2574,70 +2574,6 @@ __gitk_main ()
 	__git_complete_revlist
 }
 
-if [[ -n ${ZSH_VERSION-} ]]; then
-	echo "WARNING: this script is deprecated, please see git-completion.zsh" 1>&2
-
-	autoload -U +X compinit && compinit
-
-	__gitcomp ()
-	{
-		emulate -L zsh
-
-		local cur_="${3-$cur}"
-
-		case "$cur_" in
-		--*=)
-			;;
-		*)
-			local c IFS=$' \t\n'
-			local -a array
-			for c in ${=1}; do
-				c="$c${4-}"
-				case $c in
-				--*=*|*.) ;;
-				*) c="$c " ;;
-				esac
-				array[${#array[@]}+1]="$c"
-			done
-			compset -P '*[=:]'
-			compadd -Q -S '' -p "${2-}" -a -- array && _ret=0
-			;;
-		esac
-	}
-
-	__gitcomp_nl ()
-	{
-		emulate -L zsh
-
-		local IFS=$'\n'
-		compset -P '*[=:]'
-		compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
-	}
-
-	__gitcomp_file ()
-	{
-		emulate -L zsh
-
-		local IFS=$'\n'
-		compset -P '*[=:]'
-		compadd -Q -p "${2-}" -f -- ${=1} && _ret=0
-	}
-
-	_git ()
-	{
-		local _ret=1 cur cword prev
-		cur=${words[CURRENT]}
-		prev=${words[CURRENT-1]}
-		let cword=CURRENT-1
-		emulate ksh -c __${service}_main
-		let _ret && _default && _ret=0
-		return _ret
-	}
-
-	compdef _git git gitk
-	return
-fi
-
 __git_func_wrap ()
 {
 	local cur words cword prev
-- 
1.9.2+fc1.11.g71fb719
Previous: Felipe ContrerasNext: Felipe Contreras
Message 3 of 7 in “completion: fixes”
  1. 0/6 completion: fixesFelipe Contreras, Apr 30, 2014
  2. 1/6 completion: bash: remove old wrappersFelipe Contreras, Apr 30, 2014
  3. 2/6 completion: bash: remove zsh wrapperFelipe Contreras, Apr 30, 2014
  4. 3/6 completion: zsh: don't hide ourselvesFelipe Contreras, Apr 30, 2014
  5. 4/6 completion: remove zsh hackFelipe Contreras, Apr 30, 2014
  6. 5/6 completion: zsh: trivial cleanupsFelipe Contreras, Apr 30, 2014
  7. 6/6 completion: bash: cleanup cygwin checkFelipe Contreras, Apr 30, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.