Changeset View
Changeset View
Standalone View
Standalone View
plugins/git/gitplugin.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 42 | { | |||
---|---|---|---|---|---|
44 | public: | 44 | public: | ||
45 | StandardJob(KDevelop::IPlugin* parent, KJob* job, OutputJobVerbosity verbosity); | 45 | StandardJob(KDevelop::IPlugin* parent, KJob* job, OutputJobVerbosity verbosity); | ||
46 | 46 | | |||
47 | QVariant fetchResults() override { return QVariant(); } | 47 | QVariant fetchResults() override { return QVariant(); } | ||
48 | void start() override; | 48 | void start() override; | ||
49 | JobStatus status() const override { return m_status; } | 49 | JobStatus status() const override { return m_status; } | ||
50 | KDevelop::IPlugin* vcsPlugin() const override { return m_plugin; } | 50 | KDevelop::IPlugin* vcsPlugin() const override { return m_plugin; } | ||
51 | 51 | | |||
52 | public slots: | 52 | public Q_SLOTS: | ||
53 | void result(KJob*); | 53 | void result(KJob*); | ||
54 | 54 | | |||
55 | private: | 55 | private: | ||
56 | KJob* m_job; | 56 | KJob* m_job; | ||
57 | KDevelop::IPlugin* m_plugin; | 57 | KDevelop::IPlugin* m_plugin; | ||
58 | JobStatus m_status; | 58 | JobStatus m_status; | ||
59 | }; | 59 | }; | ||
60 | 60 | | |||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 167 | KDevelop::DVcsJob* lsFiles(const QDir &repository, | |||
168 | const QStringList &args, | 168 | const QStringList &args, | ||
169 | KDevelop::OutputJob::OutputJobVerbosity verbosity = KDevelop::OutputJob::Verbose); | 169 | KDevelop::OutputJob::OutputJobVerbosity verbosity = KDevelop::OutputJob::Verbose); | ||
170 | KDevelop::DVcsJob* gitRevList(const QString &directory, | 170 | KDevelop::DVcsJob* gitRevList(const QString &directory, | ||
171 | const QStringList &args); | 171 | const QStringList &args); | ||
172 | KDevelop::DVcsJob* gitRevParse(const QString &repository, | 172 | KDevelop::DVcsJob* gitRevParse(const QString &repository, | ||
173 | const QStringList &args, | 173 | const QStringList &args, | ||
174 | KDevelop::OutputJob::OutputJobVerbosity verbosity = KDevelop::OutputJob::Silent); | 174 | KDevelop::OutputJob::OutputJobVerbosity verbosity = KDevelop::OutputJob::Silent); | ||
175 | 175 | | |||
176 | private slots: | 176 | private Q_SLOTS: | ||
177 | void parseGitBlameOutput(KDevelop::DVcsJob *job); | 177 | void parseGitBlameOutput(KDevelop::DVcsJob *job); | ||
178 | void parseGitLogOutput(KDevelop::DVcsJob *job); | 178 | void parseGitLogOutput(KDevelop::DVcsJob *job); | ||
179 | void parseGitDiffOutput(KDevelop::DVcsJob* job); | 179 | void parseGitDiffOutput(KDevelop::DVcsJob* job); | ||
180 | void parseGitRepoLocationOutput(KDevelop::DVcsJob* job); | 180 | void parseGitRepoLocationOutput(KDevelop::DVcsJob* job); | ||
181 | void parseGitStatusOutput(KDevelop::DVcsJob* job); | 181 | void parseGitStatusOutput(KDevelop::DVcsJob* job); | ||
182 | void parseGitStatusOutput_old(KDevelop::DVcsJob* job); | 182 | void parseGitStatusOutput_old(KDevelop::DVcsJob* job); | ||
183 | void parseGitVersionOutput(KDevelop::DVcsJob* job); | 183 | void parseGitVersionOutput(KDevelop::DVcsJob* job); | ||
184 | void parseGitBranchOutput(KDevelop::DVcsJob* job); | 184 | void parseGitBranchOutput(KDevelop::DVcsJob* job); | ||
185 | void parseGitCurrentBranch(KDevelop::DVcsJob* job); | 185 | void parseGitCurrentBranch(KDevelop::DVcsJob* job); | ||
186 | 186 | | |||
187 | void ctxPushStash(); | 187 | void ctxPushStash(); | ||
188 | void ctxPopStash(); | 188 | void ctxPopStash(); | ||
189 | void ctxStashManager(); | 189 | void ctxStashManager(); | ||
190 | 190 | | |||
191 | void fileChanged(const QString& file); | 191 | void fileChanged(const QString& file); | ||
192 | void delayedBranchChanged(); | 192 | void delayedBranchChanged(); | ||
193 | 193 | | |||
194 | signals: | 194 | Q_SIGNALS: | ||
195 | void repositoryBranchChanged(const QUrl& repository); | 195 | void repositoryBranchChanged(const QUrl& repository); | ||
196 | 196 | | |||
197 | private: | 197 | private: | ||
198 | bool ensureValidGitIdentity(const QDir& dir); | 198 | bool ensureValidGitIdentity(const QDir& dir); | ||
199 | void addNotVersionedFiles(const QDir& dir, const QList<QUrl>& files); | 199 | void addNotVersionedFiles(const QDir& dir, const QList<QUrl>& files); | ||
200 | 200 | | |||
201 | //commit dialog "main" helper | 201 | //commit dialog "main" helper | ||
202 | QStringList getLsFiles(const QDir &directory, const QStringList &args, | 202 | QStringList getLsFiles(const QDir &directory, const QStringList &args, | ||
Show All 21 Lines |