vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Add command to return current branch name

Open Maddimax opened this issue 2 years ago • 0 comments

Similar to "CopyCurrentBranch", I'd like a way to get the current branch name in e.g. my tasks.json file:

"tasks": [
  {
    "label": "echo",
    "type": "shell",
    "command": "echo ${command:gitlens.getCurrentBranch}",
  }
]

Maddimax avatar Jul 18 '22 07:07 Maddimax