File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
release/share/git-webui/webui/js
src/share/git-webui/webui/js Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2252,8 +2252,8 @@ webui.NewChangedFilesView = function(workspaceView) {
2252
2252
if ( selectedItemsFromOtherUser . length > 0 ) {
2253
2253
self . confirmActionOnOtherUsersChanges ( "commit" ) ;
2254
2254
} else {
2255
- var commitMessage = $ ( '#commitMsg' ) . val ( ) + "\n" + $ ( "#commitMsgDetail" ) . val ( ) ;
2256
- self . commit ( commitMessage ) ;
2255
+ var commitMessage = $ ( '#commitMsg' ) . val ( ) ;
2256
+ self . commit ( commitMessage , $ ( "#commitMsgDetail" ) . val ( ) ) ;
2257
2257
}
2258
2258
2259
2259
} ) ;
@@ -2455,11 +2455,11 @@ webui.NewChangedFilesView = function(workspaceView) {
2455
2455
} ) ;
2456
2456
}
2457
2457
2458
- self . commit = function ( message ) {
2458
+ self . commit = function ( message , details ) {
2459
2459
var selectedFilesAsString = selectedItems . join ( " " ) ;
2460
2460
2461
2461
webui . git ( "add " + selectedFilesAsString ) ;
2462
- webui . git ( 'commit -m "' + message + '" -- ' + selectedFilesAsString , function ( output ) {
2462
+ webui . git ( 'commit -m "' + message + '" -m "' + details + '" - - ' + selectedFilesAsString , function ( output ) {
2463
2463
webui . showSuccess ( output ) ;
2464
2464
workspaceView . update ( ) ;
2465
2465
} ) ;
Original file line number Diff line number Diff line change @@ -2252,8 +2252,8 @@ webui.NewChangedFilesView = function(workspaceView) {
2252
2252
if ( selectedItemsFromOtherUser . length > 0 ) {
2253
2253
self . confirmActionOnOtherUsersChanges ( "commit" ) ;
2254
2254
} else {
2255
- var commitMessage = $ ( '#commitMsg' ) . val ( ) + "\n" + $ ( "#commitMsgDetail" ) . val ( ) ;
2256
- self . commit ( commitMessage ) ;
2255
+ var commitMessage = $ ( '#commitMsg' ) . val ( ) ;
2256
+ self . commit ( commitMessage , $ ( "#commitMsgDetail" ) . val ( ) ) ;
2257
2257
}
2258
2258
2259
2259
} ) ;
@@ -2455,11 +2455,11 @@ webui.NewChangedFilesView = function(workspaceView) {
2455
2455
} ) ;
2456
2456
}
2457
2457
2458
- self . commit = function ( message ) {
2458
+ self . commit = function ( message , details ) {
2459
2459
var selectedFilesAsString = selectedItems . join ( " " ) ;
2460
2460
2461
2461
webui . git ( "add " + selectedFilesAsString ) ;
2462
- webui . git ( 'commit -m "' + message + '" -- ' + selectedFilesAsString , function ( output ) {
2462
+ webui . git ( 'commit -m "' + message + '" -m "' + details + '" - - ' + selectedFilesAsString , function ( output ) {
2463
2463
webui . showSuccess ( output ) ;
2464
2464
workspaceView . update ( ) ;
2465
2465
} ) ;
You can’t perform that action at this time.
0 commit comments