Treat files generated by hub(1) as gitcommits

- `.git/PULLREQ_EDITMSG` is generated by `hub pull-request`.
- `.git/ISSUE_EDITMSG` is generated by `hub issue create`.
- `.git/RELEASE_EDITMSG` is generated by `hub release create`.
This commit is contained in:
Teo Ljungberg
2018-09-20 19:59:24 +02:00
committed by Tim Pope
parent b6cbbb0ad3
commit 3a9ddb8ffa

View File

@@ -44,6 +44,7 @@ augroup rhubarb
\ if expand('%') ==# '' && &previewwindow && pumvisible() && getbufvar('#', '&omnifunc') ==# 'rhubarb#omnifunc' |
\ setlocal nolist linebreak filetype=markdown |
\ endif
autocmd BufNewFile,BufRead *.git/{PULLREQ_EDIT,ISSUE_EDIT,RELEASE_EDIT}MSG set ft=gitcommit
augroup END
if !exists('g:fugitive_browse_handlers')