{"thread":{"id":"10443","subject":"UI and git-completion.sh","startedAt":"2007-10-23T21:46:17Z","lastAt":"2007-10-24T17:34:57Z","messageCount":13,"participants":["Paolo Ciarrocchi","Steven Grimm","Randal L. Schwartz","Matthieu Moy","Brian Downing","Johannes Schindelin","Pierre Habouzit","Johannes Gilger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"57029","messageId":"20071023234617.45a4fc64@paolo-desktop","threadId":"10443","inReplyTo":null,"subject":"UI and git-completion.sh","fromName":"Paolo Ciarrocchi","fromEmail":"paolo.ciarrocchi@gmail.com","sentAt":"2007-10-23T21:46:17Z","receivedAt":"2007-10-23T21:46:17Z","isPatch":false,"sender":{"key":"paolo.ciarrocchi@gmail.com","avatar":null},"body":"Hi all,\nI just asked for help on the #git irc channel in order to install\nthe .git-completion.sh script (thanks nessundorma) and after using it \nfor a while I started wondering why I cannot find any reference to it the \nofficial documentation.\nThe only important think that git grep found is:\n\tpaolo@paolo-desktop:~/git$ git grep completion *\n\tDocumentation/RelNotes-1.5.0.txt: - Bash completion scripts have been updated heavily.\nShouldn't it be mentioned somewhere? \n\nI know that newbies are somehow scared by the following:\n\tpaolo@paolo-desktop:~/git$ git-\n\tDisplay all 151 possibilities? (y or n)\nWhat? Do I have to learn 151 commands?\nNo way!\n\nUsing the git-completation script it all boils down to 48 commands.\n\npaolo@paolo-desktop:~/git$ git \nadd                   fetch                 rebase \nam                    filter-branch         rebase--interactive \nannotate              format-patch          relink \napply                 fsck                  remote \narchive               gc                    repack \nbisect                get-tar-commit-id     request-pull \nblame                 grep                  reset \nbranch                gui                   resolve \nbundle                imap-send             revert \ncheckout              init                  rm \ncheckout-index        instaweb              send-email \ncherry                log                   shortlog \ncherry-pick           lost-found            show \ncitool                ls-files              show-branch \nclean                 ls-remote             show-ref \nclone                 ls-tree               stash \ncommit                merge                 status \nconfig                mergetool             submodule \nconvert-objects       mv                    tag \ncount-objects         name-rev              var \ndescribe              pickaxe               verify-pack \ndiff                  pull                  whatchanged \ndiff-stages           push\n\nAnd I think I can remove some commands from the list.\n\nWhat people think about starting suggesting the usage of the script in the documentation?\nI just want to know the opinion of the list before trying to write a documentation patch.\nNext step would be to reduce the number of the items listed by git <tab> but I know there is \nalready a discussion about it on the list.\n\nRegards,\n\t\tPaolo\n"},{"id":"57030","messageId":"471E6EF0.2060403@midwinter.com","threadId":"10443","inReplyTo":"20071023234617.45a4fc64@paolo-desktop","subject":"Re: UI and git-completion.sh","fromName":"Steven Grimm","fromEmail":"koreth@midwinter.com","sentAt":"2007-10-23T22:00:16Z","receivedAt":"2007-10-23T22:00:16Z","isPatch":false,"sender":{"key":"koreth@midwinter.com","avatar":"https://gravatar.com/avatar/71b4d2e8b62f168bdc9e9205341159e3567003b4f9e2127c617c5fa0a1f5bad2?d=mp&s=160"},"body":"Paolo Ciarrocchi wrote:\n> What people think about starting suggesting the usage of the script in the documentation?\n>   \nAlso might be worth mentioning the zsh completion support. (I know it's \nthere, but haven't used it -- maybe its author would care to describe it \na bit?)\n\n-Steve\n"},{"id":"57037","messageId":"86ve8x9z1f.fsf@blue.stonehenge.com","threadId":"10443","inReplyTo":"471E6EF0.2060403@midwinter.com","subject":"Re: UI and git-completion.sh","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2007-10-23T23:44:28Z","receivedAt":"2007-10-23T23:44:28Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Steven\" == Steven Grimm <koreth@midwinter.com> writes:\n\nSteven> Also might be worth mentioning the zsh completion support. (I know it's there,\nSteven> but haven't used it -- maybe its author would care to describe it a bit?)\n\nWhere is it?  I'm a zsh user, and would love to have git support.\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"57039","messageId":"vpqir4xgzep.fsf@bauges.imag.fr","threadId":"10443","inReplyTo":"86ve8x9z1f.fsf@blue.stonehenge.com","subject":"Re: UI and git-completion.sh","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2007-10-23T23:54:38Z","receivedAt":"2007-10-23T23:54:38Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"merlyn@stonehenge.com (Randal L. Schwartz) writes:\n\n>>>>>> \"Steven\" == Steven Grimm <koreth@midwinter.com> writes:\n>\n> Steven> Also might be worth mentioning the zsh completion support. (I know it's there,\n> Steven> but haven't used it -- maybe its author would care to describe it a bit?)\n>\n> Where is it?  I'm a zsh user, and would love to have git support.\n\nIn zsh itself.\n\nCompletion/Unix/Command/_git\n\n-- \nMatthieu\n"},{"id":"57040","messageId":"86prz59y9s.fsf@blue.stonehenge.com","threadId":"10443","inReplyTo":"vpqir4xgzep.fsf@bauges.imag.fr","subject":"Re: UI and git-completion.sh","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2007-10-24T00:01:03Z","receivedAt":"2007-10-24T00:01:03Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Matthieu\" == Matthieu Moy <Matthieu.Moy@imag.fr> writes:\n\nMatthieu> In zsh itself.\n\nMatthieu> Completion/Unix/Command/_git\n\nNot in my version of zsh.  Any chance I can add that to my 4.2.3 installation?\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"57043","messageId":"86d4v59wvt.fsf@blue.stonehenge.com","threadId":"10443","inReplyTo":"471E91C9.3000004@midwinter.com","subject":"Re: UI and git-completion.sh","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2007-10-24T00:31:02Z","receivedAt":"2007-10-24T00:31:02Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Steven\" == Steven Grimm <koreth@midwinter.com> writes:\n\nSteven> And I think we've just proven that more documentation is required\nSteven> here! (I have no idea how to enable it myself; I just know I've seen\nSteven> it mentioned on the list from time to time.)\n\nYes, so what is the process of adding the git zsh completion to any relatively\nstable version of zsh?  Someone here must know.\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"57045","messageId":"vpqbqapgx0j.fsf@bauges.imag.fr","threadId":"10443","inReplyTo":"86prz59y9s.fsf@blue.stonehenge.com","subject":"Re: UI and git-completion.sh","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2007-10-24T00:46:20Z","receivedAt":"2007-10-24T00:46:20Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"merlyn@stonehenge.com (Randal L. Schwartz) writes:\n\n>>>>>> \"Matthieu\" == Matthieu Moy <Matthieu.Moy@imag.fr> writes:\n>\n> Matthieu> In zsh itself.\n>\n> Matthieu> Completion/Unix/Command/_git\n>\n> Not in my version of zsh.  Any chance I can add that to my 4.2.3\n> installation?\n\nhttp://zsh.cvs.sourceforge.net/zsh/zsh/Completion/Unix/Command/_git\n\nTry adding it to your $fpath, hopefully, the new _git doesn't use the\nother new zsh features, and it will work (I have a CVS _git with a\n4.3.4 zsh, and it works like a charm).\n\n-- \nMatthieu\n"},{"id":"57046","messageId":"868x5t9w02.fsf@blue.stonehenge.com","threadId":"10443","inReplyTo":"vpqbqapgx0j.fsf@bauges.imag.fr","subject":"Re: UI and git-completion.sh","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2007-10-24T00:50:05Z","receivedAt":"2007-10-24T00:50:05Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Matthieu\" == Matthieu Moy <Matthieu.Moy@imag.fr> writes:\n\nMatthieu> http://zsh.cvs.sourceforge.net/zsh/zsh/Completion/Unix/Command/_git\n\nMatthieu> Try adding it to your $fpath, hopefully, the new _git doesn't use the\nMatthieu> other new zsh features, and it will work (I have a CVS _git with a\nMatthieu> 4.3.4 zsh, and it works like a charm).\n\nDo I add it as _git below my $fpath?  Or do I need to put it into a subdir?\nHow will it know it is there?\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"57047","messageId":"20071024005549.GC24924@lavos.net","threadId":"10443","inReplyTo":"86d4v59wvt.fsf@blue.stonehenge.com","subject":"Re: UI and git-completion.sh","fromName":"Brian Downing","fromEmail":"bdowning@lavos.net","sentAt":"2007-10-24T00:55:49Z","receivedAt":"2007-10-24T00:55:49Z","isPatch":false,"sender":{"key":"bdowning@lavos.net","avatar":"https://avatars.githubusercontent.com/u/366426?v=4"},"body":"On Tue, Oct 23, 2007 at 05:31:02PM -0700, Randal L. Schwartz wrote:\n> Yes, so what is the process of adding the git zsh completion to any\n> relatively stable version of zsh?  Someone here must know.\n\nI dunno the \"right\" way to do it, but I had this in my .zshrc file that\nI presumably cargo-culted from somewhere:\n\n    fpath=( $HOME/.zsh/compfuncs $fpath )\n\nSo in addition to that, doing:\n\n    wget -O ~/.zsh/compfuncs/_git 'http://zsh.cvs.sourceforge.net/*checkout*/zsh/zsh/Completion/Unix/Command/_git'\n\nmight get you something.  I guess if your zsh is too old it might be\nincompatible with the completion script, though...\n\n-bcd\n"},{"id":"57048","messageId":"20071024005711.GD24924@lavos.net","threadId":"10443","inReplyTo":"20071024005549.GC24924@lavos.net","subject":"Re: UI and git-completion.sh","fromName":"Brian Downing","fromEmail":"bdowning@lavos.net","sentAt":"2007-10-24T00:57:11Z","receivedAt":"2007-10-24T00:57:11Z","isPatch":false,"sender":{"key":"bdowning@lavos.net","avatar":"https://avatars.githubusercontent.com/u/366426?v=4"},"body":"On Tue, Oct 23, 2007 at 07:55:49PM -0500, Brian Downing wrote:\n> I dunno the \"right\" way to do it, but I had this in my .zshrc file that\n> I presumably cargo-culted from somewhere:\n> \n>     fpath=( $HOME/.zsh/compfuncs $fpath )\n\nI think this has to come before \"compinit\" or whatever starts up the new\ncompletion engine.\n\n-bcd\n"},{"id":"57069","messageId":"Pine.LNX.4.64.0710241113190.25221@racer.site","threadId":"10443","inReplyTo":"20071023234617.45a4fc64@paolo-desktop","subject":"Re: UI and git-completion.sh","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-10-24T10:20:07Z","receivedAt":"2007-10-24T10:20:07Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 23 Oct 2007, Paolo Ciarrocchi wrote:\n\n> Using the git-completation script it all boils down to 48 commands.\n> \n> paolo@paolo-desktop:~/git$ git \n> add                   fetch                 rebase \n> am                    filter-branch         rebase--interactive \n> annotate              format-patch          relink \n> apply                 fsck                  remote \n> archive               gc                    repack \n> bisect                get-tar-commit-id     request-pull \n> blame                 grep                  reset \n> branch                gui                   resolve \n> bundle                imap-send             revert \n> checkout              init                  rm \n> checkout-index        instaweb              send-email \n> cherry                log                   shortlog \n> cherry-pick           lost-found            show \n> citool                ls-files              show-branch \n> clean                 ls-remote             show-ref \n> clone                 ls-tree               stash \n> commit                merge                 status \n> config                mergetool             submodule \n> convert-objects       mv                    tag \n> count-objects         name-rev              var \n> describe              pickaxe               verify-pack \n> diff                  pull                  whatchanged \n> diff-stages           push\n\ndiff-stages just struck my eye.  It is no longer in git...  But AFAICS it \nis no longer in git-completion.bash either.\n\nBesides, I think that the number of commands could be reduced further.  \nFor example, I think that a regular user does not want to see\n\ncheckout-index, citool, convert-objects, filter-branch, get-tar-commit-id, \nimap-send, instaweb, lost-found, ls-tree, name-rev, rebase--interactive, \nrelink, repack, request-pull, show-ref, var, verify-pack and whatchanged.\n\nThis list was not vs the quoted list, but my current list (pretty much tip \nof Shawn's \"next\".\n\nNote: I would like to complete the _options_ when one of these subcommands \nwas specified, but I just do not want to see them when entering \n\"git<SPACE><TAB>\".\n\nBTW Pierre's idea of generating many (if not all) of these completions on \nthe fly (maybe with \"--help-completion\"?) is intriguing.\n\nCiao,\nDscho\n"},{"id":"57085","messageId":"20071024170706.GA29387@artemis.corp","threadId":"10443","inReplyTo":"Pine.LNX.4.64.0710241113190.25221@racer.site","subject":"Re: UI and git-completion.sh","fromName":"Pierre Habouzit","fromEmail":"madcoder@debian.org","sentAt":"2007-10-24T17:07:06Z","receivedAt":"2007-10-24T17:07:06Z","isPatch":false,"sender":{"key":"madcoder@debian.org","avatar":"https://avatars.githubusercontent.com/u/44708?v=4"},"body":"On Wed, Oct 24, 2007 at 10:20:07AM +0000, Johannes Schindelin wrote:\n> BTW Pierre's idea of generating many (if not all) of these completions on \n> the fly (maybe with \"--help-completion\"?) is intriguing.\n\n  To be fair, it's not my idea, I'm just bought to it.\n\n-- \n·O·  Pierre Habouzit\n··O                                                madcoder@debian.org\nOOO                                                http://www.madism.org\n"},{"id":"57088","messageId":"471F8241.50308@hackvalue.de","threadId":"10443","inReplyTo":"86ve8x9z1f.fsf@blue.stonehenge.com","subject":"Re: UI and git-completion.sh","fromName":"Johannes Gilger","fromEmail":"heipei@hackvalue.de","sentAt":"2007-10-24T17:34:57Z","receivedAt":"2007-10-24T17:34:57Z","isPatch":false,"sender":{"key":"heipei@hackvalue.de","avatar":"https://avatars.githubusercontent.com/u/6072?v=4"},"body":"Randal L. Schwartz wrote:\n> Where is it?  I'm a zsh user, and would love to have git support.\n> \n\nAnother way to get git-completion support with zsh (works with 4.3.2) is to use \nthe existing bash-completion and enable bash-completion for zsh via:\nautoload bashcompinit\nbashcompinit\nin your .zshrc or similar. Btw, if you use gentoo you can install git with bash-completion, \nalthough i suppose that most people here are not using emerge to get their git ;).\n\nGreetings,\nJohannes\n\n-- \nJohannes Gilger <heipei@hackvalue.de>\nhttp://hackvalue.de/heipei/\nGPG-Key: 0x42F6DE81\nGPG-Fingerprint: BB49 F967 775E BB52 3A81  882C 58EE B178 42F6 DE81\n"}]}