mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:8.2.4188: not all gitconfig files are recognized (#17178)
Problem: Not all gitconfig files are recognized.
Solution: Add a few more patterns. (Tim Pope, closes vim/vim#9597)
bcfa11b7df
This commit is contained in:
parent
ffd9551aa2
commit
28352dc6e5
@ -674,8 +674,10 @@ autocmd BufRead,BufNewFile *.gift setf gift
|
||||
" Git
|
||||
au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit
|
||||
au BufNewFile,BufRead NOTES_EDITMSG,EDIT_DESCRIPTION setf gitcommit
|
||||
au BufNewFile,BufRead *.git/config,.gitconfig,/etc/gitconfig setf gitconfig
|
||||
au BufNewFile,BufRead *.git/config,.gitconfig,*/etc/gitconfig setf gitconfig
|
||||
au BufNewFile,BufRead */.config/git/config setf gitconfig
|
||||
au BufNewFile,BufRead *.git/config.worktree setf gitconfig
|
||||
au BufNewFile,BufRead *.git/worktrees/*/config.worktree setf gitconfig
|
||||
au BufNewFile,BufRead .gitmodules,*.git/modules/*/config setf gitconfig
|
||||
if !empty($XDG_CONFIG_HOME)
|
||||
au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config setf gitconfig
|
||||
|
@ -893,8 +893,6 @@ local filename = {
|
||||
["EDIT_DESCRIPTION"] = "gitcommit",
|
||||
[".gitconfig"] = "gitconfig",
|
||||
[".gitmodules"] = "gitconfig",
|
||||
["/.config/git/config"] = "gitconfig",
|
||||
["/etc/gitconfig"] = "gitconfig",
|
||||
["gitolite.conf"] = "gitolite",
|
||||
["git-rebase-todo"] = "gitrebase",
|
||||
gkrellmrc = "gkrellmrc",
|
||||
@ -1149,7 +1147,10 @@ local pattern = {
|
||||
[".*Eterm/.*%.cfg"] = "eterm",
|
||||
[".*%.git/modules/.*/config"] = "gitconfig",
|
||||
[".*%.git/config"] = "gitconfig",
|
||||
[".*/etc/gitconfig"] = "gitconfig",
|
||||
[".*/%.config/git/config"] = "gitconfig",
|
||||
[".*%.git/config%.worktree"] = "gitconfig",
|
||||
[".*%.git/worktrees/.*/config%.worktree"] = "gitconfig",
|
||||
["%.gitsendemail%.msg%......."] = "gitsendemail",
|
||||
["gkrellmrc_."] = "gkrellmrc",
|
||||
[".*/usr/.*/gnupg/options%.skel"] = "gpg",
|
||||
|
@ -197,7 +197,7 @@ let s:filename_checks = {
|
||||
\ 'gemtext': ['file.gmi', 'file.gemini'],
|
||||
\ 'gift': ['file.gift'],
|
||||
\ 'gitcommit': ['COMMIT_EDITMSG', 'MERGE_MSG', 'TAG_EDITMSG', 'NOTES_EDITMSG', 'EDIT_DESCRIPTION'],
|
||||
\ 'gitconfig': ['file.git/config', '.gitconfig', '.gitmodules', 'file.git/modules//config', '/.config/git/config', '/etc/gitconfig', '/etc/gitconfig.d/file', '/.gitconfig.d/file', 'any/.config/git/config', 'any/.gitconfig.d/file', 'some.git/config', 'some.git/modules/any/config'],
|
||||
\ 'gitconfig': ['file.git/config', 'file.git/config.worktree', 'file.git/worktrees/x/config.worktree', '.gitconfig', '.gitmodules', 'file.git/modules//config', '/.config/git/config', '/etc/gitconfig', '/usr/local/etc/gitconfig', '/etc/gitconfig.d/file', '/.gitconfig.d/file', 'any/.config/git/config', 'any/.gitconfig.d/file', 'some.git/config', 'some.git/modules/any/config'],
|
||||
\ 'gitolite': ['gitolite.conf', '/gitolite-admin/conf/file', 'any/gitolite-admin/conf/file'],
|
||||
\ 'gitrebase': ['git-rebase-todo'],
|
||||
\ 'gitsendemail': ['.gitsendemail.msg.xxxxxx'],
|
||||
|
Loading…
Reference in New Issue
Block a user