| 1315 | |
| 1316 | |
| 1317 | process_p GitRepository::asyncFetch(QString what, bool forcetags) |
| 1318 | // ---------------------------------------------------------------------------- |
| 1319 | // Prepare a Process that will download latest changes from a remote project |
| 1320 | // ---------------------------------------------------------------------------- |
| 1321 | { |
| 1322 | QStringList args; |
| 1323 | args << "fetch" << what; |
| 1324 | if (forcetags) |
| 1325 | args << "--tags"; // Overwrite local tag with remote with same name |
| 1326 | // FIXME: may fetch lots of stuff is repo is a |
| 1327 | // shallow clone |
| 1328 | GitAuthProcess * proc = new GitAuthProcess(args, path, false); |
| 1329 | connect(proc, SIGNAL(finished(int,QProcess::ExitStatus)), |
| 1330 | this, SLOT (asyncProcessFinished(int,QProcess::ExitStatus))); |
| 1331 | |
| 1332 | // Track % complete by reading stderr |
| 1333 | connect(proc, SIGNAL(standardErrorUpdated(QByteArray)), |
| 1334 | this, SLOT (computePercentComplete())); |
| 1335 | connect(this, SIGNAL(percentComplete(int)), |
| 1336 | proc, SIGNAL(percentComplete(int))); // signal forwarding |
| 1337 | return process_p(proc); |
| 1338 | } |
| 1339 | |
| 1340 | |
| 1341 | process_p GitRepository::asyncArchive(QString from, QString to, QString format) |
no outgoing calls
no test coverage detected