logic: improve usability of shallow indexing ui (#823)

* added "--shallow" command line option to request shallow indexing
* modified behavior of Sourcetrail to always perform a deep index if not explicitly specified differently by the user
This commit is contained in:
Malte Langkabel
2019-12-03 18:26:02 +01:00
committed by GitHub
parent 00bf7ebda6
commit fa6dd6c9e1
10 changed files with 52 additions and 39 deletions
@@ -10,10 +10,11 @@ class MessageLoadProject: public Message<MessageLoadProject>
{
public:
MessageLoadProject(
const FilePath& filePath, bool settingsChanged = false, RefreshMode refreshMode = REFRESH_NONE)
const FilePath& filePath, bool settingsChanged = false, RefreshMode refreshMode = REFRESH_NONE, bool shallowIndexingRequested = false)
: projectSettingsFilePath(filePath)
, settingsChanged(settingsChanged)
, refreshMode(refreshMode)
, shallowIndexingRequested(shallowIndexingRequested)
{
}
@@ -32,6 +33,7 @@ public:
const FilePath projectSettingsFilePath;
const bool settingsChanged;
const RefreshMode refreshMode;
const bool shallowIndexingRequested;
};
#endif // MESSAGE_LOAD_PROJECT_H