{"thread":{"id":"22870","subject":"Thoughts on git-completion","startedAt":"2010-03-01T19:51:11Z","lastAt":"2010-03-01T20:34:47Z","messageCount":3,"participants":["Tim Visher","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"135968","messageId":"c115fd3c1003011151n398780fev24d0bd44bb634d83@mail.gmail.com","threadId":"22870","inReplyTo":null,"subject":"Thoughts on git-completion","fromName":"Tim Visher","fromEmail":"tim.visher@gmail.com","sentAt":"2010-03-01T19:51:11Z","receivedAt":"2010-03-01T19:51:11Z","isPatch":false,"sender":{"key":"tim.visher@gmail.com","avatar":"https://gravatar.com/avatar/98307ce54bcac1a46b5d845827d5386e2a27895ff08790cdd3877ad527760575?d=mp&s=160"},"body":"Hello Everyone,\n\nI `alias g=git` and `alias gk=gitk` on every machine that I use git on\nand I have to edit the git-completion.bash script in order to get the\nmarvelous completion provided by that script with my aliases.  Is this\nsomething that could be rolled in to the official release or does this\nrest firmly in the personal customization realm?  I'm prepared to\nsubmit a patch if you'd like.\n\nThoughts?\n\n-- \n\nIn Christ,\n\nTimmy V.\n\nhttp://burningones.com/\nhttp://five.sentenc.es/ - Spend less time on e-mail\n"},{"id":"135970","messageId":"20100301195751.GG24776@spearce.org","threadId":"22870","inReplyTo":"c115fd3c1003011151n398780fev24d0bd44bb634d83@mail.gmail.com","subject":"Re: Thoughts on git-completion","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2010-03-01T19:57:51Z","receivedAt":"2010-03-01T19:57:51Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Tim Visher <tim.visher@gmail.com> wrote:\n> I `alias g=git` and `alias gk=gitk` on every machine that I use git on\n> and I have to edit the git-completion.bash script in order to get the\n> marvelous completion provided by that script with my aliases.  Is this\n> something that could be rolled in to the official release or does this\n> rest firmly in the personal customization realm?  I'm prepared to\n> submit a patch if you'd like.\n\nDoes adding to your local script\n\n  complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \\\n  || complete -o default -o nospace -F _git g\n\nwork for you?  It seems to me you just need to tell bash to run\n_git or _gitk when doing completion for your alias.\n\n-- \nShawn.\n"},{"id":"135971","messageId":"c115fd3c1003011234m75df37ehed54a59552f681a5@mail.gmail.com","threadId":"22870","inReplyTo":"20100301195751.GG24776@spearce.org","subject":"Re: Thoughts on git-completion","fromName":"Tim Visher","fromEmail":"tim.visher@gmail.com","sentAt":"2010-03-01T20:34:47Z","receivedAt":"2010-03-01T20:34:47Z","isPatch":false,"sender":{"key":"tim.visher@gmail.com","avatar":"https://gravatar.com/avatar/98307ce54bcac1a46b5d845827d5386e2a27895ff08790cdd3877ad527760575?d=mp&s=160"},"body":"On Mon, Mar 1, 2010 at 2:57 PM, Shawn O. Pearce <spearce@spearce.org> wrote:\n> Tim Visher <tim.visher@gmail.com> wrote:\n>> I `alias g=git` and `alias gk=gitk` on every machine that I use git on\n>> and I have to edit the git-completion.bash script in order to get the\n>> marvelous completion provided by that script with my aliases.  Is this\n>> something that could be rolled in to the official release or does this\n>> rest firmly in the personal customization realm?  I'm prepared to\n>> submit a patch if you'd like.\n>\n> Does adding to your local script\n>\n>  complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \\\n>  || complete -o default -o nospace -F _git g\n>\n> work for you?  It seems to me you just need to tell bash to run\n> _git or _gitk when doing completion for your alias.\n\nThe patch that I use is:\n\n    2290a2291,2295\n    > complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \\\n    >        || complete -o default -o nospace -F _git g\n    > complete -o bashdefault -o default -o nospace -F _gitk gk 2>/dev/null \\\n    >        || complete -o default -o nospace -F _gitk gk\n\n-- \n\nIn Christ,\n\nTimmy V.\n\nhttp://burningones.com/\nhttp://five.sentenc.es/ - Spend less time on e-mail\n"}]}