diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index c17d850..45bfc6d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -689,6 +689,9 @@ augroup fugitive \ if FugitiveIsGitDir(expand(':p:h')) | \ let b:git_dir = s:Slash(expand(':p:h')) | \ exe fugitive#BufReadStatus(v:cmdbang) | + \ echohl WarningMSG | + \ echo "fugitive: Direct editing of .git/" . expand('%:t') . " is deprecated" | + \ echohl NONE | \ elseif filereadable(expand('')) | \ silent doautocmd BufReadPre | \ keepalt noautocmd read |