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
-_switch-to-pr-worktree_: Does everything that the _switch-to-pr_ action does, but always chooses to open the branch in a worktree, creating a new one if needed and creating a new local branch if needed. For creating the local branch and worktree, default options are chosen. The worktree is then opened in a new window.
95
95
96
+
-_delete-branch_: Delete the branch after confirmation.
97
+
98
+
-_{prId}_ is an optional parameter representing the Pull Request ID when the branch is associated with a specific pull request.
99
+
100
+
-_{prTitle}_ is an optional parameter representing the Pull Request title when the branch is associated with a specific pull request.
101
+
102
+
-_{prBaseRef}_ is an optional parameter representing the base commit SHA of the Pull Request when the branch is associated with a specific pull request.
103
+
104
+
-_{prHeadRef}_ is an optional parameter representing the head commit SHA of the Pull Request when the branch is associated with a specific pull request.
105
+
96
106
#### Example Usage
97
107
98
108
Right click a branch in the Commit Graph and choose "Share -> Copy Link to Branch", select a remote to copy the branch for, and share with a teammate. When they access the link, GitLens will help them clone the repository, open it in GitLens, add the remote you linked, and open the Commit Graph to the branch, step-by-step.
@@ -141,14 +151,16 @@ Used to open a comparison between two references in the _Search & Compare_ view.
-_{ref1}_ and _{ref2}_ are the two refs to compare, in reverse order i.e. GitLens will compare _{ref2}_ to _{ref1}_ in the _Search & Compare_ view. These refs can be a branch name, tag name, or commit SHA. A blank ref means “working tree”. Both refs cannot be blank.
149
159
150
160
-_{prRepoUrl}_ is an optional parameter, generally used for Pull Request comparisons, representing the pull URL of the git remote that represents the head commit of the Pull Request. It is formatted similar to _{remoteUrl}_, so see Common References section above to learn how to format it.
151
161
162
+
-_{prId}_ is an optional parameter representing the Pull Request ID when the comparison is related to a specific pull request.
163
+
152
164
#### Example Usage
153
165
154
166
Share the changes of a pull request by right clicking the pull request's branch in the Commit Graph and choose "Compare with Common Base". The changes should be opened in the _Search & Compare_ view. Right click the Comparison item in the _Search & Compare_ view and choose "Share -> Copy Link to Comparison", and choose a remote to copy the comparison for. Share the link with a teammate. When they access the link, GitLens will help them clone the repository, open it in GitLens, add the remote, and open the _Search & Compare_ view to the pull request's changes, step-by-step.
0 commit comments