From ffdd3177739beb50c5a419d3e894dc51ee6d926b Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 23 Jun 2013 22:17:22 +0300 Subject: Git: Support remove/rename for tags Change-Id: I737d2405ef1a10ec451c4baceaea9a0bc194ac1e Reviewed-by: Tobias Hunger --- src/plugins/git/branchmodel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/git/branchmodel.h') 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; -- cgit v1.2.1