]> andersk Git - svn-all-fast-export.git/blobdiff - src/ruleparser.h
Add support for annotated tags
[svn-all-fast-export.git] / src / ruleparser.h
index 1d561e073c7bf42b3a4f609404885b9995466de9..2e0904edad72ee41fd3d3eb725069a7b18b97c6e 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,11 +44,18 @@ public:
         QRegExp rx;
         QString repository;
         QString branch;
-        QString path;
         int minRevision;
         int maxRevision;
+        int lineNumber;
+        bool annotate;
+
+        enum Action {
+            Ignore,
+            Export,
+            Recurse
+        } action;
 
-        Match() : minRevision(-1), maxRevision(-1) { }
+        Match() : minRevision(-1), maxRevision(-1), lineNumber(0), annotate(false), action(Ignore) { }
     };
 
     Rules(const QString &filename);
@@ -63,4 +72,9 @@ private:
     QList<Match> m_matchRules;
 };
 
+#ifndef QT_NO_DEBUG_STREAM
+class QDebug;
+QDebug operator<<(QDebug, const Rules::Match &);
+#endif
+
 #endif
This page took 0.051661 seconds and 4 git commands to generate.