-
Notifications
You must be signed in to change notification settings - Fork 0
rm/sparse-index-integration-v1.1 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rm/sparse-index-integration
Are you sure you want to change the base?
Changes from all commits
a50c772
f5534dd
5921ac2
8d6fc06
e6ec4ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -262,6 +262,10 @@ int cmd_rm(int argc, const char **argv, const char *prefix) | |
char *seen; | ||
|
||
git_config(git_default_config, NULL); | ||
if (the_repository->gitdir) { | ||
prepare_repo_settings(the_repository); | ||
the_repository->settings.command_requires_full_index = 0; | ||
} | ||
Comment on lines
+265
to
+268
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm slightly suspicious here.
In this commit they actually use
Though I'm following your advice right now because it does make sense to me ;-) |
||
|
||
argc = parse_options(argc, argv, prefix, builtin_rm_options, | ||
builtin_rm_usage, 0); | ||
|
@@ -296,8 +300,9 @@ int cmd_rm(int argc, const char **argv, const char *prefix) | |
|
||
seen = xcalloc(pathspec.nr, 1); | ||
|
||
/* TODO: audit for interaction with sparse-index. */ | ||
ensure_full_index(&the_index); | ||
if (pathspec_needs_expanded_index(&the_index, &pathspec)) | ||
ensure_full_index(&the_index); | ||
|
||
for (i = 0; i < active_nr; i++) { | ||
const struct cache_entry *ce = active_cache[i]; | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.