From 9ebde93f3ac9c8745586d20c6cd35f9c5473cc8b Mon Sep 17 00:00:00 2001 From: Bob Hiestand Date: Thu, 18 Dec 2008 14:07:55 -0600 Subject: [PATCH] Documented the 'VCSCommandVCSTypeOverride' variable. --- doc/vcscommand.txt | 10 ++++++++++ plugin/vcscommand.vim | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/doc/vcscommand.txt b/doc/vcscommand.txt index 0317fa0..eaee014 100644 --- a/doc/vcscommand.txt +++ b/doc/vcscommand.txt @@ -438,6 +438,7 @@ The following variables are available: |VCSCommandSVNDiffExt| |VCSCommandSVNDiffOpt| |VCSCommandSVNExec| +|VCSCommandVCSTypeOverride| VCSCommandCommitOnWrite *VCSCommandCommitOnWrite* @@ -562,6 +563,15 @@ VCSCommandSVNExec *VCSCommandSVNExec* This variable controls the executable used for all SVN commands If not set, it defaults to "svn". +VCSCommandVCSTypeOverride *VCSCommandVCSTypeOverride* + +This variable allows the VCS type detection to be overridden on a path-by-path +basis. The value of this variable is expected to be a List of Lists. Each +item in the high-level List is a List containing two elements. The first +element is a regular expression that will be matched against the full file +name of a given buffer. If it matches, the second element will be used as the +VCS type. + 5.2 VCSCommand events *vcscommand-events* For additional customization, vcscommand can trigger user-defined events. diff --git a/plugin/vcscommand.vim b/plugin/vcscommand.vim index 9587df3..a4649fe 100644 --- a/plugin/vcscommand.vim +++ b/plugin/vcscommand.vim @@ -250,6 +250,14 @@ " side-by-side. If not set, it defaults to 'horizontal' for all but " VCSVimDiff windows. " +" VCSCommandVCSTypeOverride +" This variable allows the VCS type detection to be overridden on a +" path-by-path basis. The value of this variable is expected to be a List +" of Lists. Each high-level List item is a List containing two elements. +" The first element is a regular expression that will be matched against the +" full file name of a given buffer. If it matches, the second element will +" be used as the VCS type. +" " Event documentation {{{2 " For additional customization, VCSCommand.vim uses User event autocommand " hooks. Each event is in the VCSCommand group, and different patterns -- 2.11.4.GIT