Replies: 1 comment
-
|
They refer to gitlens.currentLine.format setting, which is a VS Code setting for GitLens to format the current line annotation. They ask if it supports branch. Actually GitLens currentLine format supports placeholders like ${author}, ${date}, ${message}, ${hash}, ${branch}? GitLens has a setting "gitlens.currentLine.format": a string with placeholders. According to docs, placeholders include: ${author}, ${date}, ${time}, ${message}, ${hash}, ${shortHash}, ${abbreviatedHash}, ${branch}, maybe? I'm not entirely sure but think branch is supported: ${branch} returns the branch name. There's also ${branchName} maybe. Let's check memory: In GitLens docs, "currentLine.format" supports placeholders: ${author}, ${date}, ${time}, ${message}, ${hash}, ${shortHash}, ${abbreviatedHash}, ${branch}, ${remote}, etc. I think branch is supported. Example: "gitlens.currentLine.format": "${branch} ${author} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to see the branch number in the commit content in the code line
Beta Was this translation helpful? Give feedback.
All reactions