changeset 2:74b2ef146e82

Also detect P4 depot roots with .p4ignore.txt.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 24 Sep 2020 22:49:05 -0700
parents 953baa4a16bb
children 14a272d72b0a
files autoload/p44vim.vim
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/p44vim.vim	Thu Sep 24 22:48:03 2020 -0700
+++ b/autoload/p44vim.vim	Thu Sep 24 22:49:05 2020 -0700
@@ -32,7 +32,8 @@
     let l:prev_cur = ''
     while l:cur != l:prev_cur
         if filereadable(l:cur.'/.p4config') ||
-                    \filereadable(l:cur.'/.p4ignore')
+                    \filereadable(l:cur.'/.p4ignore') ||
+                    \filereadable(l:cur.'/.p4ignore.txt')
             return l:cur
         endif
         let l:prev_cur = l:cur