| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <QSharedPointer> |
| 4 | |
| 5 | #include <WipRevisionInfo.h> |
| 6 | |
| 7 | class GitBase; |
| 8 | class GitCache; |
| 9 | |
| 10 | class GitWip |
| 11 | { |
| 12 | public: |
| 13 | explicit GitWip(const QSharedPointer<GitBase> &git, const QSharedPointer<GitCache> &cache); |
| 14 | |
| 15 | QVector<QString> getUntrackedFiles() const; |
| 16 | bool updateWip() const; |
| 17 | WipRevisionInfo getWipInfo() const; |
| 18 | |
| 19 | private: |
| 20 | QSharedPointer<GitBase> mGit; |
| 21 | QSharedPointer<GitCache> mCache; |
| 22 | }; |
| 23 |