]> git.lyx.org Git - features.git/commitdiff
Suppress unneeded git log output
authorYuriy Skalko <yuriy.skalko@gmail.com>
Mon, 28 Dec 2020 13:35:07 +0000 (15:35 +0200)
committerYuriy Skalko <yuriy.skalko@gmail.com>
Mon, 28 Dec 2020 13:44:39 +0000 (15:44 +0200)
src/VCBackend.cpp

index 48cb618e74c059a0b4be09626f90424d21f6fb5c..b20a586090379718c4e153a69e22488cb6673b1d 100644 (file)
@@ -1830,7 +1830,7 @@ bool GIT::findFile(FileName const & file)
        string const fname = onlyFileName(file.absFileName());
        LYXERR(Debug::LYXVC, "LyXVC: Checking if file is under git control for `"
                        << fname << '\'');
-       int const ret = doVCCommandCall("git log " + quoteName(fname),
+       int const ret = doVCCommandCall("git log -n 0 " + quoteName(fname),
                        file.onlyPath());
        bool const found = (ret == 0);
        LYXERR(Debug::LYXVC, "GIT control: " << (found ? "enabled" : "disabled"));