[LyX/master] Suppress unneeded git log output

Yuriy Skalko yuriy.skalko at gmail.com
Mon Dec 28 13:44:44 UTC 2020


commit d927e9343c4b51d5b81680d39c161f869a887b61
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date:   Mon Dec 28 15:35:07 2020 +0200

    Suppress unneeded git log output
---
 src/VCBackend.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp
index 48cb618..b20a586 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"));


More information about the lyx-cvs mailing list