Skip to content

Autocomplete on branches, doesn't strip the leading plus added by git branch on worktrees #837

Closed
@tankbob

Description

System Details

  • posh-git version/path: 0.7.3.1 C:\tools\poshgit\dahlbyk-posh-git-9bda399\src
  • PowerShell version: 5.1.19041.610
  • git version 2.30.1.windows.1
  • OS: Microsoft Windows NT 10.0.19041.0

Issue Description

autocomplete on branches when a branch is checkout to a Worktree

If I'm working in my master branch and I've checked out my Development branch to another worktree folder, I cannot auto complete on a git merge because git branch --no-color puts a + symbol in front of the branch.

  Branch1
+ Development                     
+ Release                         
* master                          

The auto complete needs to ignore this leading plus when choosing the branch names. I cannot do git merge D<tab> anymore

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions