]> andersk Git - svn-all-fast-export.git/blobdiff - src/ruleparser.h
Refactor and add the ability to recurse into certain subdirs
[svn-all-fast-export.git] / src / ruleparser.h
index 483316cb22059f7c7734f354e7947b075089a9cf..7f458e7db3e5837d5251ebaffcf008109d8e703c 100644 (file)
@@ -30,11 +30,13 @@ public:
         struct Branch
         {
             QString name;
-            QString branchFrom;
         };
 
         QString name;
         QList<Branch> branches;
+        int lineNumber;
+
+        Repository() : lineNumber(0) { }
     };
 
     struct Match
@@ -42,7 +44,17 @@ public:
         QRegExp rx;
         QString repository;
         QString branch;
-        QString path;
+        int minRevision;
+        int maxRevision;
+        int lineNumber;
+
+        enum Action {
+            Ignore,
+            Export,
+            Recurse
+        } action;
+
+        Match() : minRevision(-1), maxRevision(-1), lineNumber(0), action(Ignore) { }
     };
 
     Rules(const QString &filename);
This page took 0.055325 seconds and 4 git commands to generate.