mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
perf(git_status): avoid gix index load when core.fsmonitor is used (#6817)
This commit is contained in:
@@ -250,8 +250,8 @@ fn get_repo_status(
|
||||
let has_untracked = !config.untracked.is_empty();
|
||||
let git_config = gix_repo.config_snapshot();
|
||||
if config.use_git_executable
|
||||
|| gix_repo.index_or_empty().ok()?.is_sparse()
|
||||
|| repo.fs_monitor_value_is_true
|
||||
|| gix_repo.index_or_empty().ok()?.is_sparse()
|
||||
{
|
||||
let mut args = vec!["status", "--porcelain=2"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user