Skip to content

Commit

Permalink
bash completion bugfix: git-core's completion change __git_find_subco…
Browse files Browse the repository at this point in the history
…mmand to __git_find_on_cmdline.
  • Loading branch information
jiangxin committed Dec 26, 2009
1 parent 341a371 commit 7178760
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .topdeps
@@ -0,0 +1 @@
tgmaster
6 changes: 6 additions & 0 deletions .topmsg
@@ -0,0 +1,6 @@
From: Jiang Xin <worldhello.net@gmail.com>
Subject: [PATCH] t/tg_completion_bugfix

<patch description>

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
2 changes: 1 addition & 1 deletion contrib/tg-completion.bash
Expand Up @@ -268,7 +268,7 @@ _tg_delete ()
_tg_depend ()
{
local subcommands="add"
local subcommand="$(__git_find_subcommand "$subcommands")"
local subcommand="$(__git_find_subcommand "$subcommands" 2>/dev/null || __git_find_on_cmdline "$subcommands" 2>/dev/null)"
if [ -z "$subcommand" ]; then
__tgcomp "$subcommands"
return
Expand Down

0 comments on commit 7178760

Please sign in to comment.