Add a repair option to automatically attempt to re-clone the repository

This commit is contained in:
woblight
2019-09-03 19:50:54 +02:00
parent ee1550991c
commit a0a1c03011
6 changed files with 169 additions and 48 deletions
-17
View File
@@ -24,23 +24,6 @@
#include <functional>
#include <QDebug>
template <class T>
struct AutoPtr {
T pointer = nullptr;
void(*disposer)(T);
AutoPtr(void(*d)(T)) : disposer(d){ }
void reset(T t = nullptr) { disposer(pointer); pointer = t; }
~AutoPtr(){ disposer(pointer); }
AutoPtr& operator =(AutoPtr &&other){ disposer(pointer); pointer = other.pointer; other.pointer = nullptr; return *this; }
AutoPtr& operator =(AutoPtr &other) = delete ;
operator T&(){ return pointer; }
T* operator &(){ return &pointer; }
bool operator !(){ return !pointer; }
};
class QThreadPool;
class GitException : public QException
{