2021-05-25 07:18:33 +02:00
|
|
|
nnoremap <Leader>ga :Git add %<CR>
|
|
|
|
nnoremap <Leader>gA :Git reset HEAD %<CR>
|
2021-02-01 07:47:23 +01:00
|
|
|
xnoremap <Leader>gb :Git blame<CR>
|
2022-05-14 16:26:49 +02:00
|
|
|
nnoremap <Leader>gb :keepalt Git branch -a<CR>
|
|
|
|
nnoremap <Leader>gB :keepalt Git branch<SPACE>
|
2021-04-15 07:32:48 +02:00
|
|
|
nnoremap <Leader>gc :Git checkout -b<SPACE>
|
|
|
|
nnoremap <Leader>gC :Git checkout<SPACE>
|
2022-11-04 06:26:26 +01:00
|
|
|
nnoremap <Leader>gd :Git difftool<CR>
|
|
|
|
nnoremap <Leader>gD :Git difftool -y<CR>
|
2021-05-18 08:03:32 +02:00
|
|
|
nnoremap <Leader>ge :sp<CR>:Gedit HEAD~:%<Left><Left>
|
2021-06-04 09:28:45 +02:00
|
|
|
nnoremap <Leader>gE :sp<CR>:Gedit :%:p<Left><Left><Left><Left>
|
2021-12-22 08:24:04 +01:00
|
|
|
nnoremap <Leader>gf :Git fetch --all --tags -f<CR>
|
2021-06-17 07:44:59 +02:00
|
|
|
nnoremap <Leader>gF :call git#git_fetch_origin_merge()<CR>
|
2021-09-09 14:40:26 +02:00
|
|
|
nnoremap <Leader>gg :Git<CR>
|
2022-05-14 16:26:49 +02:00
|
|
|
nnoremap <Leader>gh :keepalt Git log --grep=
|
|
|
|
nnoremap <Leader>gH :<C-U>keepalt Git log -G<C-r><C-w>
|
2022-04-02 14:04:13 +02:00
|
|
|
nnoremap <Leader>gk :call git#git_review()<CR>
|
|
|
|
nnoremap <Leader>gK :call git#git_review_fileview()<CR>
|
2022-05-14 16:26:49 +02:00
|
|
|
nnoremap <Leader>gl :keepalt Git log --stat %<CR>
|
|
|
|
nnoremap <Leader>gL :keepalt Git log --stat -n 100<CR>
|
2021-04-21 18:12:31 +02:00
|
|
|
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>
|
|
|
|
xnoremap <Leader>gL :call git#git_log_named_block()<CR>
|
2022-04-12 14:36:22 +02:00
|
|
|
nnoremap <Leader>gm :0,3Git blame<CR><C-w>j<CR>
|
2021-06-17 07:44:59 +02:00
|
|
|
nnoremap <Leader>gM :call git#git_merge_origin()<CR>
|
2021-07-15 17:33:49 +02:00
|
|
|
nnoremap <Leader>gn :Git branch -m<SPACE>
|
2021-04-21 18:12:31 +02:00
|
|
|
nnoremap <Leader>go :call git#git_log_compare()<CR>
|
2022-05-14 16:26:49 +02:00
|
|
|
nnoremap <Leader>gr :keepalt Ggrep! -q<SPACE>
|
2022-05-02 09:08:25 +02:00
|
|
|
nnoremap <Leader>gR :call git#git_rebase_origin()<CR>
|
2022-01-19 13:11:28 +01:00
|
|
|
nnoremap <Leader>g- :call git#git_stash()<CR>:e<CR>
|
2022-02-13 07:58:24 +01:00
|
|
|
nnoremap <Leader>g+ :Git stash pop stash@
|
2021-09-09 14:40:26 +02:00
|
|
|
nnoremap <Leader>gs :Git stash list<CR>
|
2021-06-07 10:18:29 +02:00
|
|
|
nnoremap <Leader>gS :Git stash -- %<CR>
|
2022-05-14 16:26:49 +02:00
|
|
|
nnoremap <Leader>gt :keepalt Git reflog<CR>
|
2021-02-01 07:47:23 +01:00
|
|
|
nnoremap <Leader>gw :Gwrite<CR>
|
2022-05-14 16:26:49 +02:00
|
|
|
nnoremap <Leader>G :keepalt Git<SPACE>
|
2021-05-14 10:50:31 +02:00
|
|
|
|
2021-09-23 11:01:01 +02:00
|
|
|
nnoremap <Leader>gp :call git#git_push_to_upstream()<CR>
|
|
|
|
nnoremap <expr> <Leader>gP git#git_push()
|
|
|
|
|
2021-05-14 10:50:31 +02:00
|
|
|
augroup custom_fugitive
|
|
|
|
autocmd!
|
2022-05-14 10:15:21 +02:00
|
|
|
autocmd BufReadPost fugitive://* setlocal bufhidden=wipe
|
|
|
|
autocmd User FugitiveObject,FugitiveIndex nnoremap <buffer><silent> q :bwipeout!<CR>
|
2022-04-02 14:56:59 +02:00
|
|
|
autocmd User FugitiveIndex nmap <buffer> dt :Gtabedit <Plug><cfile><Bar>Gdiffsplit!<Bar>only<CR>
|
2021-05-14 10:50:31 +02:00
|
|
|
augroup END
|