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 7777 <x : String x : Key =" Text.Close" xml : space =" preserve" >CLOSE</x : String >
7878 <x : String x : Key =" Text.CommitCM.CherryPick" xml : space =" preserve" >Cherry-Pick This Commit</x : String >
7979 <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 >
8181 <x : String x : Key =" Text.CommitCM.Rebase" xml : space =" preserve" >Rebase${0}$to Here</x : String >
8282 <x : String x : Key =" Text.CommitCM.Reset" xml : space =" preserve" >Reset${0}$to Here</x : String >
8383 <x : String x : Key =" Text.CommitCM.Revert" xml : space =" preserve" >Revert Commit</x : String >
Original file line number Diff line number Diff line change 7676 <x : String x : Key =" Text.Clone.RemoteURL" xml : space =" preserve" >远程仓库 :</x : String >
7777 <x : String x : Key =" Text.Close" xml : space =" preserve" >关闭</x : String >
7878 <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 >
8080 <x : String x : Key =" Text.CommitCM.CopySHA" xml : space =" preserve" >复制提交指纹</x : String >
8181 <x : String x : Key =" Text.CommitCM.Rebase" xml : space =" preserve" >变基(rebase)${0}$到此处</x : String >
8282 <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()
236236 menu . Items . Add ( reset ) ;
237237
238238 var checkoutCommit = new MenuItem ( ) ;
239- checkoutCommit . Header = new Views . NameHighlightedTextBlock ( "CommitCM.Checkout" , commit . SHA . Substring ( 0 , 10 ) ) ;
239+ checkoutCommit . Header = App . Text ( "CommitCM.Checkout" ) ;
240240 checkoutCommit . Icon = App . CreateMenuIcon ( "Icons.Check" ) ;
241241 checkoutCommit . Click += ( o , e ) =>
242242 {
243- _repo . CheckoutCommit ( commit ) ;
243+ if ( PopupHost . CanCreatePopup ( ) )
244+ PopupHost . ShowPopup ( new CheckoutCommit ( _repo , commit ) ) ;
244245 e . Handled = true ;
245246 } ;
246247 menu . Items . Add ( checkoutCommit ) ;
Original file line number Diff line number Diff line change @@ -721,14 +721,6 @@ public void CheckoutLocalBranch(string branch)
721721 else
722722 PopupHost . ShowAndStartPopup ( new Checkout ( this , branch ) ) ;
723723 }
724-
725- public void CheckoutCommit ( Models . Commit commit )
726- {
727- if ( ! PopupHost . CanCreatePopup ( ) )
728- return ;
729-
730- PopupHost . ShowPopup ( new CheckoutCommit ( this , commit ) ) ;
731- }
732724
733725 public void DeleteMultipleBranches ( List < Models . Branch > branches , bool isLocal )
734726 {
You can’t perform that action at this time.
0 commit comments