aboutsummaryrefslogtreecommitdiffstats
path: root/Perl/Local
diff options
context:
space:
mode:
authorRhonda D'Vine <alfie>2008-09-29 20:03:37 +0000
committerRhonda D'Vine <alfie>2008-09-29 20:03:37 +0000
commit33f22b2f466f7aec4e2dcc80dde63c9d2c387eb6 (patch)
treee1db31bb2e5ddd700d7c29c4d9d47ddeb80c2f94 /Perl/Local
parent12391e8ef631d1d64741d9dedf2e9bd2935f27b3 (diff)
abstraction layer for VCS specific functions
CVS version numbers Perl/Local/VCS.pm: INITIAL -> 1.1
Diffstat (limited to 'Perl/Local')
-rw-r--r--Perl/Local/VCS.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/Perl/Local/VCS.pm b/Perl/Local/VCS.pm
new file mode 100644
index 00000000000..05a5400a972
--- /dev/null
+++ b/Perl/Local/VCS.pm
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+package VCS;
+use vars qw(@ISA);
+
+if (-d 'CVS') {
+ # CVS directory is in every subdirectory, so this is a save call
+ require Local::VCS_CVS;
+ @ISA = qw(Local::VCS_CVS);
+} else {
+ # we don't want to move up to look for a .git directory ...
+ require Local::VCS_Git;
+ @ISA = qw(Local::VCS_Git);
+}
+
+42;

© 2014-2024 Faster IT GmbH | imprint | privacy policy