From d927e9343c4b51d5b81680d39c161f869a887b61 Mon Sep 17 00:00:00 2001 From: Yuriy Skalko Date: Mon, 28 Dec 2020 15:35:07 +0200 Subject: [PATCH] Suppress unneeded git log output --- src/VCBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp index 48cb618e74..b20a586090 100644 --- a/src/VCBackend.cpp +++ b/src/VCBackend.cpp @@ -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")); -- 2.39.2