Skip to content
Snippets Groups Projects
Commit d8adf2d5 authored by Izuta Hiroyuki's avatar Izuta Hiroyuki
Browse files

Write commit message to .git/COMMIT_EDITMSG

parent 4c86262c
Branches
Tags
No related merge requests found
......@@ -935,6 +935,13 @@ function! magit#close_commit()
return
endif
let git_dir=magit#git#git_dir()
let commit_editmsg=git_dir . 'COMMIT_EDITMSG'
if ( filereadable(commit_editmsg) )
let commit_msg=s:mg_get_commit_msg()
call writefile(commit_msg, commit_editmsg)
endif
let b:magit_current_commit_mode=''
call magit#update_buffer()
endfunction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment