{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3830","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3830/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3830/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3830/events","html_url":"https://github.com/fish-shell/fish-shell/issues/3830","id":206358722,"number":3830,"title":"git checkout tab completions should show local branches first","user":{"login":"danielcompton","id":811954,"avatar_url":"https://avatars2.githubusercontent.com/u/811954?v=4","gravatar_id":"","url":"https://api.github.com/users/danielcompton","html_url":"https://github.com/danielcompton","followers_url":"https://api.github.com/users/danielcompton/followers","following_url":"https://api.github.com/users/danielcompton/following{/other_user}","gists_url":"https://api.github.com/users/danielcompton/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcompton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcompton/subscriptions","organizations_url":"https://api.github.com/users/danielcompton/orgs","repos_url":"https://api.github.com/users/danielcompton/repos","events_url":"https://api.github.com/users/danielcompton/events{/privacy}","received_events_url":"https://api.github.com/users/danielcompton/received_events","type":"User","site_admin":false},"labels":[{"id":252196718,"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/completions","name":"completions","color":"E6C0E5","default":false},{"id":4724778,"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4","html_url":"https://github.com/fish-shell/fish-shell/milestone/4","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/milestones/4/labels","id":130257,"number":4,"title":"fish-future","description":"These are issues that are not targeted for an upcoming minor or major release. After a release, we will re-examine these issues and pull any in that we think are good targets; that is retarget them to the next minor (or major) release.\r\n\r\nIf you can provide a fix for an issue in this milestone, we'll generally accept it for the next release even if the issue is not targeted for the release.","creator":{"login":"ridiculousfish","id":920838,"avatar_url":"https://avatars3.githubusercontent.com/u/920838?v=4","gravatar_id":"","url":"https://api.github.com/users/ridiculousfish","html_url":"https://github.com/ridiculousfish","followers_url":"https://api.github.com/users/ridiculousfish/followers","following_url":"https://api.github.com/users/ridiculousfish/following{/other_user}","gists_url":"https://api.github.com/users/ridiculousfish/gists{/gist_id}","starred_url":"https://api.github.com/users/ridiculousfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridiculousfish/subscriptions","organizations_url":"https://api.github.com/users/ridiculousfish/orgs","repos_url":"https://api.github.com/users/ridiculousfish/repos","events_url":"https://api.github.com/users/ridiculousfish/events{/privacy}","received_events_url":"https://api.github.com/users/ridiculousfish/received_events","type":"User","site_admin":false},"open_issues":380,"closed_issues":13,"state":"open","created_at":"2012-06-11T02:25:13Z","updated_at":"2018-03-10T13:26:45Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2017-02-08T23:31:27Z","updated_at":"2018-03-10T13:29:22Z","closed_at":null,"author_association":"NONE","body":"<!-- check if this problem is already solved! github.com/issues?q=is:issue+user:fish-shell -->\r\n- [x] Have you checked if problem occurs with [fish 2.5.0](/fish-shell/fish-shell/releases/tag/2.5.0)?\r\n- [x] Tried fish without third-party customizations *(check `sh -c 'env HOME=$(mktemp -d) fish'`)*?\r\n\r\n**fish version installed** *(`fish --version`)*:\r\n\r\n```\r\nfish, version 2.5.0\r\n```\r\n**OS/terminal used**:\r\n\r\nmacOS 10.12.2 (16C67)\r\niTerm2 Build 3.0.10\r\n\r\nTalk about the the issue here.\r\n\r\n## Reproduction steps\r\n1. Develop on a repo with many remote branches, but only a handful of local branches\r\n2. Type `git checkout <tab>`\r\n\r\n<!-- Hard to explain? Post a screen recording on asciinema.org then link it here -->\r\n\r\nhttps://asciinema.org/a/7xgdf4fcji8icta5vcjd6tqyf\r\n\r\n## Expected\r\n\r\nThe local branches in my repo that I see when I run `git branch` are sorted to the top of the completions list (sorted by recency of use, recency of commit, or alphabetically, not sure exactly), with remote branches sorted below, and tags at the bottom.\r\n\r\n## Actual\r\n\r\nBranches are sorted alphabetically, with remote branches sorted together with local branches. Tags are sorted at the bottom.\r\n\r\nI'm sorry if this is a duplicate issue, I had a look and couldn't find anything covering this specific case. Relates to #361, #675, #2628."},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/372030030","html_url":"https://github.com/fish-shell/fish-shell/issues/3830#issuecomment-372030030","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3830","id":372030030,"user":{"login":"mqudsi","id":606923,"avatar_url":"https://avatars3.githubusercontent.com/u/606923?v=4","gravatar_id":"","url":"https://api.github.com/users/mqudsi","html_url":"https://github.com/mqudsi","followers_url":"https://api.github.com/users/mqudsi/followers","following_url":"https://api.github.com/users/mqudsi/following{/other_user}","gists_url":"https://api.github.com/users/mqudsi/gists{/gist_id}","starred_url":"https://api.github.com/users/mqudsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mqudsi/subscriptions","organizations_url":"https://api.github.com/users/mqudsi/orgs","repos_url":"https://api.github.com/users/mqudsi/repos","events_url":"https://api.github.com/users/mqudsi/events{/privacy}","received_events_url":"https://api.github.com/users/mqudsi/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T13:29:22Z","updated_at":"2018-03-10T13:29:22Z","author_association":"CONTRIBUTOR","body":"@faho can we get tags below branches? local branches are currently above remote branches, so that's all what's left here."}}
{"actor":{"display_login":"mqudsi"}}