slightly improve speed on large git repositories
This commit is contained in:
parent
f31076baf8
commit
28da6575e6
1 changed files with 2 additions and 1 deletions
3
XD.c
3
XD.c
|
|
@ -197,9 +197,10 @@ has_untracked(git_repository *repo)
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
/* FIXME: this is really slow in large git repos :( */
|
/* FIXME: this is really slow in large git repos :( */
|
||||||
opts.show = GIT_STATUS_SHOW_WORKDIR_ONLY;
|
opts.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;
|
||||||
opts.flags = GIT_STATUS_OPT_INCLUDE_UNTRACKED |
|
opts.flags = GIT_STATUS_OPT_INCLUDE_UNTRACKED |
|
||||||
GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX |
|
GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX |
|
||||||
|
GIT_STATUS_OPT_UPDATE_INDEX |
|
||||||
GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH;
|
GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH;
|
||||||
|
|
||||||
if (git_status_list_new(&list, repo, &opts) < 0) {
|
if (git_status_list_new(&list, repo, &opts) < 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue