Via John Whitley:

Git 2.5 adds a new command git worktree, providing first-class
support for multiple working directories (aka worktrees) per
repository. An update to filetype.vim is needed the gitcommit filetype
paths for the new secondary worktree locations. See diff below.


diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 71d6b0b..dc11c79 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -774,6 +774,8 @@ au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom
 " Git
 au BufNewFile,BufRead *.git/COMMIT_EDITMSG setf gitcommit
 au BufNewFile,BufRead *.git/MERGE_MSG setf gitcommit
+au BufNewFile,BufRead *.git/worktrees/*/COMMIT_EDITMSG setf gitcommit
+au BufNewFile,BufRead *.git/worktrees/*/MERGE_MSG setf gitcommit
 au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
 au BufNewFile,BufRead *.git/modules/*/COMMIT_EDITMSG setf gitcommit
 au BufNewFile,BufRead *.git/modules/*/config setf gitconfig


Justin M. Keyes

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui