Add ggpull functionality to vim config

pull/1/head
Ensar Sarajčić 2021-01-14 15:11:46 +01:00
parent 3315031905
commit 79f036ac6b
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,13 @@
" Shorcut to push directly to current branch on origin
" Similar to `ggpush` in fish config
function! s:PushOrigin()
execute 'Gpush origin ' . FugitiveHead()
execute 'Git push origin ' . FugitiveHead()
endfunction
" Shorcut to pull directly from current branch on origin
" Similar to `ggpull` in fish config
function! s:PullOrigin()
execute 'Git pull origin ' . FugitiveHead()
endfunction
" Generates url for creating PR for current branch