]> git.lyx.org Git - lyx.git/blobdiff - src/VCBackend.h
Do not scale statusbar icons
[lyx.git] / src / VCBackend.h
index d9839064a22dd9a849cfaad4c53f116bfa814cc0..e7dc735b99a71daf6950ba5979460135cec940e1 100644 (file)
@@ -129,13 +129,8 @@ protected:
         * @param path the path from which to execute
         * @return exit status
         */
-       static int doVCCommandCall(std::string const & cmd, support::FileName const & path);
-
-       /**
-        * The master VC file. For RCS this is *,v or RCS/ *,v. master should
-        * have full path.
-        */
-       support::FileName master_;
+       static int doVCCommandCall(std::string const & cmd,
+                       support::FileName const & path = support::FileName());
 
        /// The status of the VC controlled file.
        VCStatus vcstatus_;
@@ -216,6 +211,12 @@ protected:
        void scanMaster() override;
 private:
        bool getRevisionInfo();
+       /**
+        * The master VC file. For RCS this is *,v or RCS/ *,v.
+        * master should have full path.
+        */
+       support::FileName master_;
+
        /**
         * The version of the VC file. I am not sure if this can be a
         * string or if it must be a float/int.
@@ -322,6 +323,11 @@ protected:
        };
 
 private:
+       /**
+        * The master VC file. For CVS this is CVS/Entries
+        * master should have full path.
+        */
+       support::FileName master_;
        // revision number from scanMaster
        std::string version_;
 
@@ -379,11 +385,10 @@ class SVN : public VCS {
 public:
        ///
        explicit
-       SVN(support::FileName const & m, Buffer * b);
+       SVN(Buffer * b);
 
        /// Determine whether the file is under SVN control
-       /// \return the file itself if so, else empty
-       static support::FileName const findFile(support::FileName const & file);
+       static bool findFile(support::FileName const & file);
 
        /// get file from repo, the caller must ensure that it does not exist locally
        static bool retrieve(support::FileName const & file);
@@ -490,11 +495,11 @@ class GIT : public VCS {
 public:
        ///
        explicit
-       GIT(support::FileName const & m, Buffer * b);
+       GIT(Buffer * b);
 
-       /// Determine whether the file is under RCS control
+       /// Determine whether the file is under GIT control
        /// \return the file itself if so, else empty
-       static support::FileName const findFile(support::FileName const & file);
+       static bool findFile(support::FileName const & file);
 
        /// get file from repo, the caller must ensure that it does not exist locally
        static bool retrieve(support::FileName const & file);