MCPcopy Create free account
hub / github.com/c3d/tao3D / asyncFetch

Method asyncFetch

tao/git_backend.cpp:1317–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315
1316
1317process_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
1341process_p GitRepository::asyncArchive(QString from, QString to, QString format)

Callers 3

startMethod · 0.80
acceptMethod · 0.80
fetchAndCheckoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected