diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-05-20 15:26:58 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-05-20 15:26:58 -0700 |
| commit | acdeb10f91da939135fbacb847792ae237450d7d (patch) | |
| tree | 1989381cb6b65293630bd86533abde899ab52130 /builtin/rev-parse.c | |
| parent | 5a9253cd45494b7b8aed8166529c5c451086f451 (diff) | |
| parent | 124b05b23005437fa5fb91863bde2a8f5840e164 (diff) | |
| download | git-acdeb10f91da939135fbacb847792ae237450d7d.tar.gz | |
Merge branch 'ds/sparse-colon-path'
"git show :<path>" learned to work better with the sparse-index
feature.
* ds/sparse-colon-path:
rev-parse: integrate with sparse index
object-name: diagnose trees in index properly
object-name: reject trees found in the index
show: integrate with the sparse index
t1092: add compatibility tests for 'git show'
Diffstat (limited to 'builtin/rev-parse.c')
| -rw-r--r-- | builtin/rev-parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c index 8480a59f57..4fc6185b2d 100644 --- a/builtin/rev-parse.c +++ b/builtin/rev-parse.c @@ -723,6 +723,9 @@ int cmd_rev_parse(int argc, const char **argv, const char *prefix) prefix = setup_git_directory(); git_config(git_default_config, NULL); did_repo_setup = 1; + + prepare_repo_settings(the_repository); + the_repository->settings.command_requires_full_index = 0; } if (!strcmp(arg, "--")) { |
