comparison runtime/ftplugin/git.vim @ 18818:5c40013d45ee

Update runtime files. Commit: https://github.com/vim/vim/commit/c08ee7476b19f9b4de5df287797af87c4e3fba0a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 5 22:47:25 2019 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Thu, 05 Dec 2019 23:00:04 +0100
parents 43efa4f5a8ea
children
comparison
equal deleted inserted replaced
18817:17aefb9d7c45 18818:5c40013d45ee
1 " Vim filetype plugin 1 " Vim filetype plugin
2 " Language: generic git output 2 " Language: generic git output
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
4 " Last Change: 2016 Aug 29 4 " Last Change: 2019 Dec 05
5 5
6 " Only do this when not done yet for this buffer 6 " Only do this when not done yet for this buffer
7 if (exists("b:did_ftplugin")) 7 if (exists("b:did_ftplugin"))
8 finish 8 finish
9 endif 9 endif
10 let b:did_ftplugin = 1 10 let b:did_ftplugin = 1
11 11
12 if !exists('b:git_dir') 12 if !exists('b:git_dir')
13 if expand('%:p') =~# '[\/]\.git[\/]modules[\/]' 13 if expand('%:p') =~# '[\/]\.git[\/]modules[\/]\|:[\/][\/]\|^\a\a\+:'
14 " Stay out of the way 14 " Stay out of the way
15 elseif expand('%:p') =~# '[\/]\.git[\/]worktrees' 15 elseif expand('%:p') =~# '[\/]\.git[\/]worktrees'
16 let b:git_dir = matchstr(expand('%:p'),'.*\.git[\/]worktrees[\/][^\/]\+\>') 16 let b:git_dir = matchstr(expand('%:p'),'.*\.git[\/]worktrees[\/][^\/]\+\>')
17 elseif expand('%:p') =~# '\.git\>' 17 elseif expand('%:p') =~# '\.git\>'
18 let b:git_dir = matchstr(expand('%:p'),'.*\.git\>') 18 let b:git_dir = matchstr(expand('%:p'),'.*\.git\>')