Commit a033beec authored by jkobus's avatar jkobus Committed by Jarek Kobus
Browse files

Simplify code



Change-Id: I1576c3b8d370fdae660a399654b77af11a5f5d36
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent d017495a
......@@ -819,14 +819,12 @@ void GitClient::diff(const QString &workingDirectory,
if (unstagedFileNames.empty() && stagedFileNames.empty()) {
// local repository diff
handler->diffRepository();
} else if (!stagedFileNames.empty()) {
// diff of selected files only with --cached option, used in commit editor
handler->diffFiles(stagedFileNames, unstagedFileNames);
} else {
if (!stagedFileNames.empty()) {
// diff of selected files only with --cached option, used in commit editor
handler->diffFiles(stagedFileNames, unstagedFileNames);
} else if (!unstagedFileNames.empty()) {
// current project diff
handler->diffProjects(unstagedFileNames);
}
// current project diff
handler->diffProjects(unstagedFileNames);
}
} else {
const QString binary = settings()->stringValue(GitSettings::binaryPathKey);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment