forked from qt-creator/qt-creator
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:
committed by
André Hartmann
parent
6e7d2a4001
commit
b0ac6435b3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user