mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Make parameter more readable.
This commit is contained in:
parent
7309f018f5
commit
fb16e5cca1
@ -99,11 +99,11 @@ bool VCS::makeRCSRevision(string const &version, string &revis) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool VCS::checkparentdirs(FileName const & file, std::string const & pathname)
|
bool VCS::checkparentdirs(FileName const & file, std::string const & vcsdir)
|
||||||
{
|
{
|
||||||
FileName dirname = file.onlyPath();
|
FileName dirname = file.onlyPath();
|
||||||
do {
|
do {
|
||||||
FileName tocheck = FileName(addName(dirname.absFileName(), pathname));
|
FileName tocheck = FileName(addName(dirname.absFileName(), vcsdir));
|
||||||
LYXERR(Debug::LYXVC, "check file: " << tocheck.absFileName());
|
LYXERR(Debug::LYXVC, "check file: " << tocheck.absFileName());
|
||||||
if (tocheck.exists())
|
if (tocheck.exists())
|
||||||
return true;
|
return true;
|
||||||
|
@ -102,8 +102,8 @@ public:
|
|||||||
virtual bool prepareFileRevisionEnabled() = 0;
|
virtual bool prepareFileRevisionEnabled() = 0;
|
||||||
|
|
||||||
/// Check the directory of file and all parent directories
|
/// Check the directory of file and all parent directories
|
||||||
/// for the existence of the given pathname
|
/// for the existence of repository-info like .git or .svn
|
||||||
static bool checkparentdirs(support::FileName const & file, std::string const & pathname);
|
static bool checkparentdirs(support::FileName const & file, std::string const & vcsdir);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// parse information from the version file
|
/// parse information from the version file
|
||||||
|
Loading…
Reference in New Issue
Block a user