{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/dotfiles/issues/452","labels_url":"https://api.github.com/repos/thoughtbot/dotfiles/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/dotfiles/issues/452/comments","events_url":"https://api.github.com/repos/thoughtbot/dotfiles/issues/452/events","html_url":"https://github.com/thoughtbot/dotfiles/pull/452","id":116932519,"number":452,"title":"Add tab-completion with local branches for `git delete-branch`","user":{"login":"geoffharcourt","id":319471,"avatar_url":"https://avatars.githubusercontent.com/u/319471?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffharcourt","html_url":"https://github.com/geoffharcourt","followers_url":"https://api.github.com/users/geoffharcourt/followers","following_url":"https://api.github.com/users/geoffharcourt/following{/other_user}","gists_url":"https://api.github.com/users/geoffharcourt/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffharcourt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffharcourt/subscriptions","organizations_url":"https://api.github.com/users/geoffharcourt/orgs","repos_url":"https://api.github.com/users/geoffharcourt/repos","events_url":"https://api.github.com/users/geoffharcourt/events{/privacy}","received_events_url":"https://api.github.com/users/geoffharcourt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-14T15:21:53Z","updated_at":"2015-11-14T18:54:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thoughtbot/dotfiles/pulls/452","html_url":"https://github.com/thoughtbot/dotfiles/pull/452","diff_url":"https://github.com/thoughtbot/dotfiles/pull/452.diff","patch_url":"https://github.com/thoughtbot/dotfiles/pull/452.patch"},"body":"This solution was heavily influenced by @keith's original contribution\nin #356, which I think may have worked on some but not all setups due to\npersonal configuration differences.\n\nThe solution in #356 added the `_git_delete_branch` function in the\n`zsh/completions` folder, which resulted in the tab-completion working\nagainst `git`, but not against our `g` function. With our new loading\norder where functions are loaded first and completions are loaded last,\nwe can load the `_git_delete_branch` function before any completions are\ndefined on `git`, `g`, or `hub`, allowing the `_git_delete_branch` shim\nto be used by all three of those git-invoking commands/functions.\n\nThank you to @keith for doing the heavy lifting here that provided the template for the solution.\n\nClose #355."},"comment":{"url":"https://api.github.com/repos/thoughtbot/dotfiles/issues/comments/156733625","html_url":"https://github.com/thoughtbot/dotfiles/pull/452#issuecomment-156733625","issue_url":"https://api.github.com/repos/thoughtbot/dotfiles/issues/452","id":156733625,"user":{"login":"croaky","id":198,"avatar_url":"https://avatars.githubusercontent.com/u/198?v=3","gravatar_id":"","url":"https://api.github.com/users/croaky","html_url":"https://github.com/croaky","followers_url":"https://api.github.com/users/croaky/followers","following_url":"https://api.github.com/users/croaky/following{/other_user}","gists_url":"https://api.github.com/users/croaky/gists{/gist_id}","starred_url":"https://api.github.com/users/croaky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croaky/subscriptions","organizations_url":"https://api.github.com/users/croaky/orgs","repos_url":"https://api.github.com/users/croaky/repos","events_url":"https://api.github.com/users/croaky/events{/privacy}","received_events_url":"https://api.github.com/users/croaky/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T18:54:39Z","updated_at":"2015-11-14T18:54:39Z","body":"I have just tried this in action and bless your sweet hearts, @geoffharcourt and @keith... it works!\r\n\r\n![](http://i1145.photobucket.com/albums/o503/KimmieRocks/sobbingten_zpsa2b3efea.gif)"}}