File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 119
119
<x : String x : Key =" Text.CommitCM.CompareWithHead" xml : space =" preserve" >Compare with HEAD</x : String >
120
120
<x : String x : Key =" Text.CommitCM.CompareWithWorktree" xml : space =" preserve" >Compare with Worktree</x : String >
121
121
<x : String x : Key =" Text.CommitCM.CopyAuthor" xml : space =" preserve" >Author</x : String >
122
- <x : String x : Key =" Text.CommitCM.CopyCommitter" xml : space =" preserve" >Committer</x : String >
123
122
<x : String x : Key =" Text.CommitCM.CopyCommitMessage" xml : space =" preserve" >Message</x : String >
123
+ <x : String x : Key =" Text.CommitCM.CopyCommitter" xml : space =" preserve" >Committer</x : String >
124
124
<x : String x : Key =" Text.CommitCM.CopySHA" xml : space =" preserve" >SHA</x : String >
125
125
<x : String x : Key =" Text.CommitCM.CopySubject" xml : space =" preserve" >Subject</x : String >
126
126
<x : String x : Key =" Text.CommitCM.CustomAction" xml : space =" preserve" >Custom Action</x : String >
Original file line number Diff line number Diff line change 123
123
<x : String x : Key =" Text.CommitCM.CompareWithHead" xml : space =" preserve" >与当前HEAD比较</x : String >
124
124
<x : String x : Key =" Text.CommitCM.CompareWithWorktree" xml : space =" preserve" >与本地工作树比较</x : String >
125
125
<x : String x : Key =" Text.CommitCM.CopyAuthor" xml : space =" preserve" >作者</x : String >
126
+ <x : String x : Key =" Text.CommitCM.CopyCommitMessage" xml : space =" preserve" >提交信息</x : String >
126
127
<x : String x : Key =" Text.CommitCM.CopyCommitter" xml : space =" preserve" >提交者</x : String >
127
128
<x : String x : Key =" Text.CommitCM.CopySHA" xml : space =" preserve" >提交指纹</x : String >
128
129
<x : String x : Key =" Text.CommitCM.CopySubject" xml : space =" preserve" >主题</x : String >
Original file line number Diff line number Diff line change 123
123
<x : String x : Key =" Text.CommitCM.CompareWithHead" xml : space =" preserve" >與目前 HEAD 比較</x : String >
124
124
<x : String x : Key =" Text.CommitCM.CompareWithWorktree" xml : space =" preserve" >與本機工作區比較</x : String >
125
125
<x : String x : Key =" Text.CommitCM.CopyAuthor" xml : space =" preserve" >作者</x : String >
126
+ <x : String x : Key =" Text.CommitCM.CopyCommitMessage" xml : space =" preserve" >提交訊息</x : String >
126
127
<x : String x : Key =" Text.CommitCM.CopyCommitter" xml : space =" preserve" >提交者</x : String >
127
128
<x : String x : Key =" Text.CommitCM.CopySHA" xml : space =" preserve" >提交編號</x : String >
128
129
<x : String x : Key =" Text.CommitCM.CopySubject" xml : space =" preserve" >標題</x : String >
Original file line number Diff line number Diff line change @@ -845,13 +845,12 @@ public ContextMenu MakeContextMenu(DataGrid list)
845
845
e . Handled = true ;
846
846
} ;
847
847
848
- var copyFullInfo = new MenuItem ( ) ;
849
- copyFullInfo . Header = App . Text ( "CommitCM.CopyCommitMessage" ) ;
850
- copyFullInfo . Icon = App . CreateMenuIcon ( "Icons.Info" ) ;
851
- copyFullInfo . Click += async ( _ , e ) =>
848
+ var copyMessage = new MenuItem ( ) ;
849
+ copyMessage . Header = App . Text ( "CommitCM.CopyCommitMessage" ) ;
850
+ copyMessage . Icon = App . CreateMenuIcon ( "Icons.Info" ) ;
851
+ copyMessage . Click += async ( _ , e ) =>
852
852
{
853
- var message = await new Commands . QueryCommitFullMessage ( _repo . FullPath , commit . SHA ) .
854
- GetResultAsync ( ) . ConfigureAwait ( false ) ;
853
+ var message = await new Commands . QueryCommitFullMessage ( _repo . FullPath , commit . SHA ) . GetResultAsync ( ) ;
855
854
await App . CopyTextAsync ( message ) ;
856
855
e . Handled = true ;
857
856
} ;
@@ -880,7 +879,7 @@ public ContextMenu MakeContextMenu(DataGrid list)
880
879
copy . Items . Add ( copySHA ) ;
881
880
copy . Items . Add ( copySubject ) ;
882
881
copy . Items . Add ( copyInfo ) ;
883
- copy . Items . Add ( copyFullInfo ) ;
882
+ copy . Items . Add ( copyMessage ) ;
884
883
copy . Items . Add ( copyAuthor ) ;
885
884
copy . Items . Add ( copyCommitter ) ;
886
885
menu . Items . Add ( copy ) ;
You can’t perform that action at this time.
0 commit comments