forked from qt-creator/qt-creator
Git: Cleanup
* Remove unused 'silent' argument * Do not output 'git --version' command Change-Id: Ia940efd5ae7e9f262552841c11d20c3d6df559a3 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
f9b8ae6a33
commit
3b5c40ba47
@@ -77,7 +77,7 @@ bool GitVersionControl::supportsOperation(Operation operation) const
|
||||
bool rc = false;
|
||||
switch (operation) {
|
||||
case AddOperation:
|
||||
rc = m_client->gitVersion(true) >= version(1, 6, 1);;
|
||||
rc = m_client->gitVersion() >= version(1, 6, 1);;
|
||||
break;
|
||||
case DeleteOperation:
|
||||
rc = true;
|
||||
@@ -110,7 +110,7 @@ bool GitVersionControl::vcsOpen(const QString & /*fileName*/)
|
||||
bool GitVersionControl::vcsAdd(const QString & fileName)
|
||||
{
|
||||
// Implement in terms of using "--intent-to-add"
|
||||
QTC_ASSERT(m_client->gitVersion(true) >= version(1, 6, 1), return false);
|
||||
QTC_ASSERT(m_client->gitVersion() >= version(1, 6, 1), return false);
|
||||
const QFileInfo fi(fileName);
|
||||
return m_client->synchronousAdd(fi.absolutePath(), true, QStringList(fi.fileName()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user