Git: Improve branch name validation

* Do not allow leading dash
* Do not allow existing local branches

Change-Id: I3efbb90b7099719a7e90cada85a58a0f91bd9730
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-10-07 10:26:13 +03:00
committed by Orgad Shaneh
parent 5e585b9eee
commit 2559f98693
3 changed files with 17 additions and 14 deletions

View File

@@ -45,7 +45,7 @@ class BranchAddDialog : public QDialog
Q_OBJECT
public:
BranchAddDialog(bool addBranch, QWidget *parent);
BranchAddDialog(const QStringList &localBranches, bool addBranch, QWidget *parent);
~BranchAddDialog();
void setBranchName(const QString &);