MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / gitDiff

Method gitDiff

src/plugins/git/client/gitclient.cpp:149–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void 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
164bool GitClientPrivate::canShow(const QString &commitId)
165{

Callers 1

actionHandlerMethod · 0.80

Calls 2

addJobMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected