update flog support

This commit is contained in:
Stefan Liebl 2024-01-31 14:19:02 +01:00
parent de2fd164a5
commit c0e9afee53

View File

@ -2,12 +2,13 @@
" Only for testing
function Flog_echo_command(command, ...)
echom flog#format_command(a:command)
echom flog#Format(a:command)
endfunction
nnoremap <buffer> <silent> rb :call flog#run_command('Git reset %h', 1, 1)<CR>
nnoremap <buffer> <silent> rbh :call flog#run_command('Git reset --hard %h', 1, 1)<CR>
setlocal nospell
nnoremap <buffer> <silent> cp :call flog#run_command('Git cherry-pick %h', 1, 1)<CR>
vnoremap <buffer> <silent> cp :<C-U>call flog#run_command("Git cherry-pick %(h'>)^..%(h'<)", 1, 1)<CR>
"vnoremap <buffer> <silent> cp :<C-U>call Flog_echo_command("Git cherry-pick %(h'>)^..%(h'<)", 1, 1)<CR>
nnoremap <buffer> <silent> rb :call flog#Exec(flog#Format('Git reset %h'))<CR>
nnoremap <buffer> <silent> rbh :call flog#Exec(flog#Format('Git reset --hard %h'))<CR>
nnoremap <buffer> <silent> cp :call flog#Exec(flog#Format('Git cherry-pick %h'))<CR>
vnoremap <buffer> <silent> cp :<C-U>call flog#Exec(flog#Format("Git cherry-pick %(h'>)^..%(h'<)")<CR>