{"thread":{"id":"9504","subject":"[PATCH] git-completion.bash - add support for git-bundle","startedAt":"2007-08-12T18:46:12Z","lastAt":"2007-08-14T03:39:19Z","messageCount":2,"participants":["Mark Levedahl","Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"50570","messageId":"11869443722087-git-send-email-mdl123@verizon.net","threadId":"9504","inReplyTo":null,"subject":"[PATCH] git-completion.bash - add support for git-bundle","fromName":"Mark Levedahl","fromEmail":"mdl123@verizon.net","sentAt":"2007-08-12T18:46:12Z","receivedAt":"2007-08-12T18:46:12Z","isPatch":true,"sender":{"key":"mdl123@verizon.net","avatar":"https://avatars.githubusercontent.com/u/5302462?v=4"},"body":"Signed-off-by: Mark Levedahl <mdl123@verizon.net>\n---\n contrib/completion/git-completion.bash |   32 ++++++++++++++++++++++++++++++++\n 1 files changed, 32 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 82b9ed4..52b2893 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -459,6 +459,35 @@ _git_branch ()\n \t__gitcomp \"$(__git_refs)\"\n }\n \n+_git_bundle ()\n+{\n+\tlocal mycword=\"$COMP_CWORD\"\n+\tcase \"${COMP_WORDS[0]}\" in\n+\tgit)\n+\t\tlocal cmd=\"${COMP_WORDS[2]}\"\n+\t\tmycword=\"$((mycword-1))\"\n+\t\t;;\n+\tgit-bundle*)\n+\t\tlocal cmd=\"${COMP_WORDS[1]}\"\n+\t\t;;\n+\tesac\n+\tcase \"$mycword\" in\n+\t1)\n+\t\t__gitcomp \"create list-heads verify unbundle\"\n+\t\t;;\n+\t2)\n+\t\t# looking for a file\n+\t\t;;\n+\t*)\n+\t\tcase \"$cmd\" in\n+\t\t\tcreate)\n+\t\t\t\t__git_complete_revlist\n+\t\t\t;;\n+\t\tesac\n+\t\t;;\n+\tesac\n+}\n+\n _git_checkout ()\n {\n \t__gitcomp \"$(__git_refs)\"\n@@ -1009,6 +1038,7 @@ _git ()\n \tadd)         _git_add ;;\n \tapply)       _git_apply ;;\n \tbisect)      _git_bisect ;;\n+\tbundle)      _git_bundle ;;\n \tbranch)      _git_branch ;;\n \tcheckout)    _git_checkout ;;\n \tcherry)      _git_cherry ;;\n@@ -1057,6 +1087,7 @@ complete -o default -o nospace -F _git_am git-am\n complete -o default -o nospace -F _git_apply git-apply\n complete -o default -o nospace -F _git_bisect git-bisect\n complete -o default -o nospace -F _git_branch git-branch\n+complete -o default -o nospace -F _git_bundle git-bundle\n complete -o default -o nospace -F _git_checkout git-checkout\n complete -o default -o nospace -F _git_cherry git-cherry\n complete -o default -o nospace -F _git_cherry_pick git-cherry-pick\n@@ -1092,6 +1123,7 @@ complete -o default -o nospace -F _git_add git-add.exe\n complete -o default -o nospace -F _git_apply git-apply.exe\n complete -o default -o nospace -F _git git.exe\n complete -o default -o nospace -F _git_branch git-branch.exe\n+complete -o default -o nospace -F _git_bundle git-bundle.exe\n complete -o default -o nospace -F _git_cherry git-cherry.exe\n complete -o default -o nospace -F _git_diff git-diff.exe\n complete -o default -o nospace -F _git_format_patch git-format-patch.exe\n-- \n1.5.3.rc4.80.ge600\n"},{"id":"50672","messageId":"20070814033919.GD27913@spearce.org","threadId":"9504","inReplyTo":"11869443722087-git-send-email-mdl123@verizon.net","subject":"Re: [PATCH] git-completion.bash - add support for git-bundle","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-08-14T03:39:19Z","receivedAt":"2007-08-14T03:39:19Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Mark Levedahl <mdl123@verizon.net> wrote:\n> Signed-off-by: Mark Levedahl <mdl123@verizon.net>\n> ---\n>  contrib/completion/git-completion.bash |   32 ++++++++++++++++++++++++++++++++\n>  1 files changed, 32 insertions(+), 0 deletions(-)\n\nThanks!  Its applied locally, I'll ask Junio to pull it shortly,\nalong with a few updates for fast-import that have been lagging\nbehind the main tree for some time.\n \n-- \nShawn.\n"}]}