Git: Replace bool argument with flags

For a start, it's a single flag. Will be extended.

Also change the default for includeRemotes to false (most callers pass false)

Change-Id: I969f89a06b85a42c134c0232d2947d58fe19ea0d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-01-28 23:32:23 +02:00
committed by Orgad Shaneh
parent 25ddacc238
commit aa6dd83e08
6 changed files with 27 additions and 17 deletions

View File

@@ -114,7 +114,7 @@ void ChangeSelectionDialog::selectCommitFromRecentHistory()
LogChangeDialog dialog(false, this);
dialog.setWindowTitle(tr("Select Commit"));
dialog.runDialog(workingDir, commit);
dialog.runDialog(workingDir, commit, LogChangeWidget::IncludeRemotes);
if (dialog.result() == QDialog::Rejected || dialog.commitIndex() == -1)
return;