Move createInitialCheckoutCommand() out from core plugin

Change-Id: I99f4795822838ac084d0d6823db96e5864e0dcdf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-08-01 11:49:33 +02:00
parent bc8ebd3bc7
commit d1284e9101
6 changed files with 34 additions and 31 deletions

View File

@@ -54,6 +54,7 @@ namespace Internal { class State; }
class VcsBaseSubmitEditor;
class VcsBasePluginPrivate;
class VcsBasePluginStateData;
class VcsCommand;
// Documentation inside.
class VCSBASE_EXPORT VcsBasePluginState
@@ -144,6 +145,16 @@ public:
const VcsBasePluginState &currentState() const;
/*!
* Return a VcsCommand capable of checking out \a url into \a baseDirectory, where
* a new subdirectory with \a localName will be created.
*
* \a extraArgs are passed on to the command being run.
*/
virtual VcsCommand *createInitialCheckoutCommand(const QString &url,
const Utils::FilePath &baseDirectory,
const QString &localName,
const QStringList &extraArgs);
// Display name of the commit action
virtual QString commitDisplayName() const;