| 147 | } |
| 148 | |
| 149 | void GitClientPrivate::gitDiff(const QString &workspace, const QString &filePath, bool isProject) |
| 150 | { |
| 151 | auto cmd = readyWork(GitDiff, workspace, filePath); |
| 152 | QStringList arguments = { "-c", "diff.color=false", |
| 153 | "diff", "-m", "-M", "-C", |
| 154 | "--first-parent", "--unified=3", |
| 155 | "--src-prefix=a/", "--dst-prefix=b/" }; |
| 156 | |
| 157 | if (!isProject) |
| 158 | arguments << "--" << filePath; |
| 159 | |
| 160 | cmd->addJob(GitBinaryPath, arguments); |
| 161 | cmd->start(); |
| 162 | } |
| 163 | |
| 164 | bool GitClientPrivate::canShow(const QString &commitId) |
| 165 | { |
no test coverage detected