aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitplugin.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <[email protected]>2018-09-27 21:01:53 +0200
committerAndrĂ© Hartmann <[email protected]>2018-09-30 05:37:09 +0000
commit546956a302d7a91006460b55e699e1b832b02a3d (patch)
treeaac4d67aed94d93c7bd7364d0d731a495838d989 /src/plugins/git/gitplugin.cpp
parent017f4d7c4d6ec5b2f667ba5d0ad692e7f52ac182 (diff)
Git: Allow creating a new repository from branch view
... when clicking "Add Branch" in a project that is not under git version control. The "Add Branch" serves no purpose here, so re-use it to call this (already existing) function. Done-with: Orgad Shaneh <[email protected]> Change-Id: Ib23d2cbeec0598e0b6f00cbde265793cc25e6142 Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r--src/plugins/git/gitplugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp
index cafcc554702..87aac67ef09 100644
--- a/src/plugins/git/gitplugin.cpp
+++ b/src/plugins/git/gitplugin.cpp
@@ -1319,6 +1319,11 @@ void GitPlugin::manageRemotes()
showNonModalDialog(currentState().topLevel(), m_remoteDialog);
}
+void GitPlugin::initRepository()
+{
+ createRepository();
+}
+
void GitPlugin::stashList()
{
showNonModalDialog(currentState().topLevel(), m_stashDialog);