1719 """ current project.</p>""" |
1719 """ current project.</p>""" |
1720 ) |
1720 ) |
1721 ) |
1721 ) |
1722 self.gitSubmodulesSummaryAct.triggered.connect(self.__gitSubmodulesSummary) |
1722 self.gitSubmodulesSummaryAct.triggered.connect(self.__gitSubmodulesSummary) |
1723 self.actions.append(self.gitSubmodulesSummaryAct) |
1723 self.actions.append(self.gitSubmodulesSummaryAct) |
|
1724 |
|
1725 self.gitWorktreeManagementAct = EricAction( |
|
1726 self.tr("Show Worktree Management"), |
|
1727 EricPixmapCache.getIcon("viewListTree"), |
|
1728 self.tr("Show Worktree Management"), |
|
1729 0, |
|
1730 0, |
|
1731 self, |
|
1732 "git_worktree_management", |
|
1733 ) |
|
1734 self.gitWorktreeManagementAct.setStatusTip( |
|
1735 self.tr("Show a dialog to manage the worktree containing the project") |
|
1736 ) |
|
1737 self.gitWorktreeManagementAct.setWhatsThis( |
|
1738 self.tr( |
|
1739 """<b>Show Worktree Management</b>""" |
|
1740 """<p>This shows a dialog to manage the worktree containing the""" |
|
1741 """ current project.</p>""" |
|
1742 ) |
|
1743 ) |
|
1744 self.gitWorktreeManagementAct.triggered.connect(self.__gitWorktreeManagement) |
|
1745 self.actions.append(self.gitWorktreeManagementAct) |
1724 |
1746 |
1725 def initMenu(self, menu): |
1747 def initMenu(self, menu): |
1726 """ |
1748 """ |
1727 Public method to generate the VCS menu. |
1749 Public method to generate the VCS menu. |
1728 |
1750 |
1913 menu.addSeparator() |
1935 menu.addSeparator() |
1914 menu.addAction(self.vcsCleanupAct) |
1936 menu.addAction(self.vcsCleanupAct) |
1915 menu.addSeparator() |
1937 menu.addSeparator() |
1916 menu.addAction(self.vcsCommandAct) |
1938 menu.addAction(self.vcsCommandAct) |
1917 menu.addSeparator() |
1939 menu.addSeparator() |
|
1940 menu.addAction(self.gitWorktreeManagementAct) |
1918 menu.addMenu(adminMenu) |
1941 menu.addMenu(adminMenu) |
1919 menu.addSeparator() |
1942 menu.addSeparator() |
1920 menu.addAction(self.gitEditUserConfigAct) |
1943 menu.addAction(self.gitEditUserConfigAct) |
1921 menu.addAction(self.gitConfigAct) |
1944 menu.addAction(self.gitConfigAct) |
1922 menu.addSeparator() |
1945 menu.addSeparator() |
2790 def __gitSubmodulesSummary(self): |
2813 def __gitSubmodulesSummary(self): |
2791 """ |
2814 """ |
2792 Private slot to show summary information for submodules of the project. |
2815 Private slot to show summary information for submodules of the project. |
2793 """ |
2816 """ |
2794 self.vcs.gitSubmoduleSummary(self.project.getProjectPath()) |
2817 self.vcs.gitSubmoduleSummary(self.project.getProjectPath()) |
|
2818 |
|
2819 def __gitWorktreeManagement(self): |
|
2820 """ |
|
2821 Private slot to show the worktree management dialog. |
|
2822 """ |
|
2823 self.vcs.gitWorktreeManagement(self.project.getProjectPath()) |