I think starting with this commit I now get a lot of Git output. For example:
...
Another question is: is it possible to avoid these commands for command-line
export? I'm guessing it would be too complicated.
Scott
Passing "-n 0" option to git should help, try the attached patch.
Yuriy
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"));
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel