File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 77
77
<x : String x : Key =" Text.Close" xml : space =" preserve" >CLOSE</x : String >
78
78
<x : String x : Key =" Text.CommitCM.CherryPick" xml : space =" preserve" >Cherry-Pick This Commit</x : String >
79
79
<x : String x : Key =" Text.CommitCM.CopySHA" xml : space =" preserve" >Copy SHA</x : String >
80
- <x : String x : Key =" Text.CommitCM.Checkout" xml : space =" preserve" >Checkout commit${0} </x : String >
80
+ <x : String x : Key =" Text.CommitCM.Checkout" xml : space =" preserve" >Checkout Commit </x : String >
81
81
<x : String x : Key =" Text.CommitCM.Rebase" xml : space =" preserve" >Rebase${0}$to Here</x : String >
82
82
<x : String x : Key =" Text.CommitCM.Reset" xml : space =" preserve" >Reset${0}$to Here</x : String >
83
83
<x : String x : Key =" Text.CommitCM.Revert" xml : space =" preserve" >Revert Commit</x : String >
Original file line number Diff line number Diff line change 76
76
<x : String x : Key =" Text.Clone.RemoteURL" xml : space =" preserve" >远程仓库 :</x : String >
77
77
<x : String x : Key =" Text.Close" xml : space =" preserve" >关闭</x : String >
78
78
<x : String x : Key =" Text.CommitCM.CherryPick" xml : space =" preserve" >挑选(cherry-pick)此提交</x : String >
79
- <x : String x : Key =" Text.CommitCM.Checkout" xml : space =" preserve" >检出提交${0} </x : String >
79
+ <x : String x : Key =" Text.CommitCM.Checkout" xml : space =" preserve" >检出此提交 </x : String >
80
80
<x : String x : Key =" Text.CommitCM.CopySHA" xml : space =" preserve" >复制提交指纹</x : String >
81
81
<x : String x : Key =" Text.CommitCM.Rebase" xml : space =" preserve" >变基(rebase)${0}$到此处</x : String >
82
82
<x : String x : Key =" Text.CommitCM.Reset" xml : space =" preserve" >重置(reset)${0}$到此处</x : String >
Original file line number Diff line number Diff line change @@ -236,11 +236,12 @@ public ContextMenu MakeContextMenu()
236
236
menu . Items . Add ( reset ) ;
237
237
238
238
var checkoutCommit = new MenuItem ( ) ;
239
- checkoutCommit . Header = new Views . NameHighlightedTextBlock ( "CommitCM.Checkout" , commit . SHA . Substring ( 0 , 10 ) ) ;
239
+ checkoutCommit . Header = App . Text ( "CommitCM.Checkout" ) ;
240
240
checkoutCommit . Icon = App . CreateMenuIcon ( "Icons.Check" ) ;
241
241
checkoutCommit . Click += ( o , e ) =>
242
242
{
243
- _repo . CheckoutCommit ( commit ) ;
243
+ if ( PopupHost . CanCreatePopup ( ) )
244
+ PopupHost . ShowPopup ( new CheckoutCommit ( _repo , commit ) ) ;
244
245
e . Handled = true ;
245
246
} ;
246
247
menu . Items . Add ( checkoutCommit ) ;
Original file line number Diff line number Diff line change @@ -721,14 +721,6 @@ public void CheckoutLocalBranch(string branch)
721
721
else
722
722
PopupHost . ShowAndStartPopup ( new Checkout ( this , branch ) ) ;
723
723
}
724
-
725
- public void CheckoutCommit ( Models . Commit commit )
726
- {
727
- if ( ! PopupHost . CanCreatePopup ( ) )
728
- return ;
729
-
730
- PopupHost . ShowPopup ( new CheckoutCommit ( this , commit ) ) ;
731
- }
732
724
733
725
public void DeleteMultipleBranches ( List < Models . Branch > branches , bool isLocal )
734
726
{
You can’t perform that action at this time.
0 commit comments