| 167 | } |
| 168 | |
| 169 | void GitClientPrivate::show(const QString &workspace, const QString &commitId) |
| 170 | { |
| 171 | auto cmd = readyWork(GitShow, workspace, commitId); |
| 172 | QStringList arguments1 = { "show", "-s", "--no-color", |
| 173 | GitShowFormat, commitId }; |
| 174 | QStringList arguments2 = { "-c", "diff.color=false", |
| 175 | "show", "-m", "-M", "-C", |
| 176 | "--first-parent", "--unified=3", |
| 177 | "--src-prefix=a/", "--dst-prefix=b/", |
| 178 | "--format=format:", "--no-color", |
| 179 | DecorateOption, commitId }; |
| 180 | |
| 181 | cmd->addJob(GitBinaryPath, arguments1); |
| 182 | cmd->addJob(GitBinaryPath, arguments2); |
| 183 | cmd->start(); |
| 184 | } |
| 185 | |
| 186 | GitClient::GitClient(QObject *parent) |
| 187 | : QObject(parent), |
no test coverage detected