wisetime-io / vscode-branch-in-window-title

Visual Studio Code extension that shows the current Git branch in the window title
Apache License 2.0
12 stars 6 forks source link

Show Git Branch with git-worktree Folders #16

Closed MShuttle closed 2 months ago

MShuttle commented 1 year ago

The extension does not work for git-worktree branches. Does not display the Extension label, nor the branch name.

See attached screen-grab.

Screen Shot 2022-11-09 at 08 52 44

prwhite commented 1 year ago

+1

dslijepcevic commented 1 year ago

Yes, basically you want the output of git -C "${workspaceFolder}" branch --show-current and in case this is empty (happens when HEAD is detached), then you probably want to display the output of git -C "${workspaceFolder}" rev-parse --short HEAD.

AnrDaemon commented 11 months ago

/me pins

AnrDaemon commented 4 months ago

Should be fixed by #23 for good.

vyshane commented 2 months ago

We have released v0.2.0 which addresses this. Thank you for the implementation, @AnrDaemon.