{"thread":{"id":"6665","subject":"[PATCH 5/8] bash: Classify more commends out of completion.","startedAt":"2007-02-04T07:38:30Z","lastAt":"2007-02-05T02:37:26Z","messageCount":5,"participants":["Shawn O. Pearce","Junio C Hamano","Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":8},"messages":[{"id":"33541","messageId":"20070204073830.GE17603@spearce.org","threadId":"6665","inReplyTo":null,"subject":"[PATCH 5/8] bash: Classify more commends out of completion.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-02-04T07:38:30Z","receivedAt":"2007-02-04T07:38:30Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Most of these commands are not ones you want to invoke from the\ncommand line on a frequent basis, or have been renamed in 1.5.0 to\nmore friendly versions, but the old names are being left behind to\nsupport existing scripts in the wild.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n contrib/completion/git-completion.bash |   18 +++++++++++++++++-\n 1 files changed, 17 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 1cf576e..382c817 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -250,16 +250,24 @@ __git_commands ()\n \tdo\n \t\tcase $i in\n \t\tadd--interactive) : plumbing;;\n+\t\tapplymbox)        : ask gittus;;\n+\t\tapplypatch)       : ask gittus;;\n+\t\tarchimport)       : import;;\n \t\tcat-file)         : plumbing;;\n \t\tcheck-ref-format) : plumbing;;\n \t\tcommit-tree)      : plumbing;;\n \t\tconvert-objects)  : plumbing;;\n+\t\tcvsexportcommit)  : export;;\n+\t\tcvsimport)        : import;;\n \t\tcvsserver)        : daemon;;\n \t\tdaemon)           : daemon;;\n+\t\tfsck-objects)     : plumbing;;\n \t\tfetch-pack)       : plumbing;;\n+\t\tfmt-merge-msg)    : plumbing;;\n \t\thash-object)      : plumbing;;\n \t\thttp-*)           : transport;;\n \t\tindex-pack)       : plumbing;;\n+\t\tinit-db)          : deprecated;;\n \t\tlocal-fetch)      : plumbing;;\n \t\tmailinfo)         : plumbing;;\n \t\tmailsplit)        : plumbing;;\n@@ -272,9 +280,13 @@ __git_commands ()\n \t\tparse-remote)     : plumbing;;\n \t\tpatch-id)         : plumbing;;\n \t\tpeek-remote)      : plumbing;;\n+\t\tprune)            : plumbing;;\n+\t\tprune-packed)     : plumbing;;\n+\t\tquiltimport)      : import;;\n \t\tread-tree)        : plumbing;;\n \t\treceive-pack)     : plumbing;;\n \t\treflog)           : plumbing;;\n+\t\trepo-config)      : plumbing;;\n \t\trerere)           : plumbing;;\n \t\trev-list)         : plumbing;;\n \t\trev-parse)        : plumbing;;\n@@ -285,14 +297,19 @@ __git_commands ()\n \t\tshow-index)       : plumbing;;\n \t\tssh-*)            : transport;;\n \t\tstripspace)       : plumbing;;\n+\t\tsvn)              : import export;;\n+\t\tsvnimport)        : import;;\n \t\tsymbolic-ref)     : plumbing;;\n+\t\ttar-tree)         : deprecated;;\n \t\tunpack-file)      : plumbing;;\n \t\tunpack-objects)   : plumbing;;\n+\t\tupdate-index)     : plumbing;;\n \t\tupdate-ref)       : plumbing;;\n \t\tupdate-server-info) : daemon;;\n \t\tupload-archive)   : plumbing;;\n \t\tupload-pack)      : plumbing;;\n \t\twrite-tree)       : plumbing;;\n+\t\tverify-tag)       : plumbing;;\n \t\t*) echo $i;;\n \t\tesac\n \tdone\n@@ -834,7 +851,6 @@ _git ()\n \tpull)        _git_pull ;;\n \tpush)        _git_push ;;\n \trebase)      _git_rebase ;;\n-\trepo-config) _git_config ;;\n \treset)       _git_reset ;;\n \tshow)        _git_show ;;\n \tshow-branch) _git_log ;;\n-- \n1.5.0.rc3.22.g5057\n"},{"id":"33547","messageId":"7vmz3uxryj.fsf@assigned-by-dhcp.cox.net","threadId":"6665","inReplyTo":"20070204073830.GE17603@spearce.org","subject":"Re: [PATCH 5/8] bash: Classify more commends out of completion.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-02-04T08:11:32Z","receivedAt":"2007-02-04T08:11:32Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"At some point we might want to generate this part from the table\ndefined in Documentation/cmd-list.perl (the latter might need to\nbe extended for that, but I think matching \"helper\", \"plumbing\"\nand perhaps \"foreign\" would cover most of them).\n"},{"id":"33549","messageId":"20070204081655.GF16766@spearce.org","threadId":"6665","inReplyTo":"7vmz3uxryj.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH 5/8] bash: Classify more commends out of completion.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-02-04T08:16:55Z","receivedAt":"2007-02-04T08:16:55Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Junio C Hamano <junkio@cox.net> wrote:\n> At some point we might want to generate this part from the table\n> defined in Documentation/cmd-list.perl (the latter might need to\n> be extended for that, but I think matching \"helper\", \"plumbing\"\n> and perhaps \"foreign\" would cover most of them).\n\nActually I'm thinking of going in the other direction.  The set of\ncommands which we expect people to use in an interactive setting\non the command line is smaller than the set of commands we actually\nship.\n\nBut yea, maybe we can build it from the existing sources...\n\n-- \nShawn.\n"},{"id":"33562","messageId":"eq4cn7$9ae$2@sea.gmane.org","threadId":"6665","inReplyTo":"20070204073830.GE17603@spearce.org","subject":"Re: [PATCH 5/8] bash: Classify more commends out of completion.","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-02-04T10:33:33Z","receivedAt":"2007-02-04T10:33:33Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Shawn O. Pearce wrote:\n\n[cut]\n\nSidenote: do you have git-config and git-init as commands to use?\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"33600","messageId":"20070205023726.GA12917@spearce.org","threadId":"6665","inReplyTo":"eq4cn7$9ae$2@sea.gmane.org","subject":"Re: [PATCH 5/8] bash: Classify more commends out of completion.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-02-05T02:37:26Z","receivedAt":"2007-02-05T02:37:26Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Jakub Narebski <jnareb@gmail.com> wrote:\n> Shawn O. Pearce wrote:\n> \n> [cut]\n> \n> Sidenote: do you have git-config and git-init as commands to use?\n\nYes.  init and config are not in that table, which means they will\nbe offered as possible completions.  The table defaults to include\nevery command, I filter out stuff which people aren't expected to\nbe running (frequently) from an interactive shell.  Err on the side\nof caution...\n\nBut not only is config in the table, we support completion on\nlots of the arguments, e.g. `git config branch.ma<tab>.re<tab>`\n(for branch.master.remote).\n\n-- \nShawn.\n"}]}