diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-06-23 22:17:22 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-07-08 12:43:13 +0200 |
commit | ffdd3177739beb50c5a419d3e894dc51ee6d926b (patch) | |
tree | 0ca763398c75db54b92cc6e2f0c2b48e2d57b061 /src/plugins/git/branchmodel.h | |
parent | 0ae3d29a66e45a276c32521aae71e2ae156465cd (diff) | |
download | qt-creator-ffdd3177739beb50c5a419d3e894dc51ee6d926b.tar.gz |
Git: Support remove/rename for tags
Change-Id: I737d2405ef1a10ec451c4baceaea9a0bc194ac1e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/branchmodel.h')
-rw-r--r-- | src/plugins/git/branchmodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/git/branchmodel.h b/src/plugins/git/branchmodel.h index 1be003dab2..a6850f7a6e 100644 --- a/src/plugins/git/branchmodel.h +++ b/src/plugins/git/branchmodel.h @@ -64,6 +64,7 @@ public: bool refresh(const QString &workingDirectory, QString *errorMessage); void renameBranch(const QString &oldName, const QString &newName); + void renameTag(const QString &oldName, const QString &newName); QString workingDirectory() const; GitClient *client() const; @@ -77,6 +78,7 @@ public: bool isTag(const QModelIndex &idx) const; void removeBranch(const QModelIndex &idx); + void removeTag(const QModelIndex &idx); void checkoutBranch(const QModelIndex &idx); bool branchIsMerged(const QModelIndex &idx); QModelIndex addBranch(const QString &name, bool track, const QModelIndex &trackedBranch); @@ -86,6 +88,7 @@ private: void setCurrentBranch(); BranchNode *indexToNode(const QModelIndex &index) const; QModelIndex nodeToIndex(BranchNode *node) const; + void removeNode(const QModelIndex &idx); QString toolTip(const QString &sha) const; |