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
Copy file name to clipboardExpand all lines: web/main.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1159,7 +1159,7 @@ class GitGraphView {
1159
1159
title: 'Reset current branch to this Commit'+ELLIPSIS,
1160
1160
visible: visibility.reset,
1161
1161
onClick: ()=>{
1162
-
dialog.showSelect('Are you sure you want to reset the <b>current branch</b> to commit <b><i>'+abbrevCommit(hash)+'</i></b>?',this.config.dialogDefaults.resetCommit.mode,[
1162
+
dialog.showSelect('Are you sure you want to reset '+(this.gitBranchHead!==null ? '<b><i>'+escapeHtml(this.gitBranchHead)+'</i></b> (the current branch)' : 'the current branch')+' to commit <b><i>'+abbrevCommit(hash)+'</i></b>?',this.config.dialogDefaults.resetCommit.mode,[
1163
1163
{name: 'Soft - Keep all changes, but reset head',value: GG.GitResetMode.Soft},
1164
1164
{name: 'Mixed - Keep working tree, but reset index',value: GG.GitResetMode.Mixed},
1165
1165
{name: 'Hard - Discard all changes',value: GG.GitResetMode.Hard}
@@ -1218,7 +1218,7 @@ class GitGraphView {
1218
1218
title: 'Pull into current branch'+ELLIPSIS,
1219
1219
visible: visibility.pull&&remote!=='',
1220
1220
onClick: ()=>{
1221
-
dialog.showForm('Are you sure you want to pull the remote branch <b><i>'+escapeHtml(refName)+'</i></b> into the current branch? If a merge is required:',[
1221
+
dialog.showForm('Are you sure you want to pull the remote branch <b><i>'+escapeHtml(refName)+'</i></b> into '+(this.gitBranchHead!==null ? '<b><i>'+escapeHtml(this.gitBranchHead)+'</i></b> (the current branch)' : 'the current branch')+'? If a merge is required:',[
1222
1222
{type: DialogInputType.Checkbox,name: 'Create a new commit even if fast-forward is possible',value: this.config.dialogDefaults.pullBranch.noFastForward},
1223
1223
{type: DialogInputType.Checkbox,name: 'Squash Commits',value: this.config.dialogDefaults.pullBranch.squash,info: 'Create a single commit on the current branch whose effect is the same as merging this remote branch.'}
dialog.showForm('Are you sure you want to merge '+actionOn.toLowerCase()+' <b><i>'+escapeHtml(name)+'</i></b> into the current branch?',[
1496
+
dialog.showForm('Are you sure you want to merge '+actionOn.toLowerCase()+' <b><i>'+escapeHtml(name)+'</i></b> into '+(this.gitBranchHead!==null ? '<b><i>'+escapeHtml(this.gitBranchHead)+'</i></b> (the current branch)' : 'the current branch')+'?',[
1497
1497
{type: DialogInputType.Checkbox,name: 'Create a new commit even if fast-forward is possible',value: this.config.dialogDefaults.merge.noFastForward},
1498
1498
{type: DialogInputType.Checkbox,name: 'Squash Commits',value: this.config.dialogDefaults.merge.squash,info: 'Create a single commit on the current branch whose effect is the same as merging this '+actionOn.toLowerCase()+'.'},
1499
1499
{type: DialogInputType.Checkbox,name: 'No Commit',value: this.config.dialogDefaults.merge.noCommit,info: 'The changes of the merge will be staged but not committed, so that you can review and/or modify the merge result before committing.'}
dialog.showForm('Are you sure you want to rebase the current branch on '+actionOn.toLowerCase()+' <b><i>'+escapeHtml(name)+'</i></b>?',[
1506
+
dialog.showForm('Are you sure you want to rebase '+(this.gitBranchHead!==null ? '<b><i>'+escapeHtml(this.gitBranchHead)+'</i></b> (the current branch)' : 'the current branch')+' on '+actionOn.toLowerCase()+' <b><i>'+escapeHtml(name)+'</i></b>?',[
1507
1507
{type: DialogInputType.Checkbox,name: 'Launch Interactive Rebase in new Terminal',value: this.config.dialogDefaults.rebase.interactive},
1508
1508
{type: DialogInputType.Checkbox,name: 'Ignore Date',value: this.config.dialogDefaults.rebase.ignoreDate,info: 'Only applicable to a non-interactive rebase.'}
0 commit comments