You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix previous logic assuming single remote name `origin`
* Fix wrong Local vs Remote branch name descriptions
* Fix git branch output with multiple branches per line breaking auto-completions
* Fix current branch not showing up in git checkout branch completions
* Fix remote branches not showing up when local branch with upstream exists despite them being different refs
* Show more contextual information in completion descriptions
* Use consistent sorting between command completions; Local branches before remote branches before files before commits, with sorting from git kept intact
Change implementation to a more encapsulated and type-specific approach:
* Use for-each-ref instead of git branch with manual current branch query and current and HEAD ref removal
* Separate local and remote branch logic for good case separation
* Use separate for-each-ref calls for early case separation
* Decorate local and remote branch information in their respective cases instead of content-conditional
* Decorate with 'Branch, Local|Remote, Commit Sha1 Subject, upstream [head|behind x]
* Use new consistent description format '{Type}' | '{Type}, Commit {Sha1} Subject | '{Type}, {Subtype}, {Commit Sha1+Subject}, {upstream name + track}
* Dissolves some spread out logic, dropping commands get-all-git-branches and extract-remote-branches-nonlocal-short and extract-mergable-sources
Influenced completions: `git checkout`, `git switch`, `git merge`
0 commit comments