File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 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
122
<x : String x : Key =" Text.CommitCM.CopyCommitter" xml : space =" preserve" >Committer</x : String >
123
+ <x : String x : Key =" Text.CommitCM.CopyCommitMessage" xml : space =" preserve" >Message</x : String >
123
124
<x : String x : Key =" Text.CommitCM.CopySHA" xml : space =" preserve" >SHA</x : String >
124
125
<x : String x : Key =" Text.CommitCM.CopySubject" xml : space =" preserve" >Subject</x : String >
125
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 @@ -845,6 +845,17 @@ 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 ) =>
852
+ {
853
+ var message = await new Commands . QueryCommitFullMessage ( _repo . FullPath , commit . SHA ) .
854
+ GetResultAsync ( ) . ConfigureAwait ( false ) ;
855
+ await App . CopyTextAsync ( message ) ;
856
+ e . Handled = true ;
857
+ } ;
858
+
848
859
var copyAuthor = new MenuItem ( ) ;
849
860
copyAuthor . Header = App . Text ( "CommitCM.CopyAuthor" ) ;
850
861
copyAuthor . Icon = App . CreateMenuIcon ( "Icons.User" ) ;
@@ -869,6 +880,7 @@ public ContextMenu MakeContextMenu(DataGrid list)
869
880
copy . Items . Add ( copySHA ) ;
870
881
copy . Items . Add ( copySubject ) ;
871
882
copy . Items . Add ( copyInfo ) ;
883
+ copy . Items . Add ( copyFullInfo ) ;
872
884
copy . Items . Add ( copyAuthor ) ;
873
885
copy . Items . Add ( copyCommitter ) ;
874
886
menu . Items . Add ( copy ) ;
You can’t perform that action at this time.
0 commit comments