Git: Add new class GitRemote

Allows to split a remote URL and performs
some validation checks on the elements.

Change-Id: I048373076b1a1553fdd7bed2986a41cc087138b0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2017-03-09 19:13:38 +01:00
committed by André Hartmann
parent 6e7d2a4001
commit b0ac6435b3
3 changed files with 55 additions and 22 deletions

View File

@@ -380,5 +380,17 @@ private:
QFutureSynchronizer<void> m_synchronizer; // for commit updates
};
class GitRemote {
public:
GitRemote(const QString &url);
QString protocol;
QString userName;
QString host;
QString path;
quint16 port = 0;
bool isValid = false;
};
} // namespace Internal
} // namespace Git