diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-04-21 15:35:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-21 15:35:04 -0700 |
commit | 7ac228c99451970bc1c31f32cbbd273311cd3a02 (patch) | |
tree | 4b867ee1083c619644193dea1696bd44800f5c61 /builtin/describe.c | |
parent | de73a20756e0d938c3098391d011b633ba863530 (diff) | |
parent | 748b8d669a0d7232c2174e02a20e32284ac05677 (diff) | |
download | git-7ac228c99451970bc1c31f32cbbd273311cd3a02.tar.gz |
Merge branch 'rn/sparse-describe'
"git describe --dirty" learns to work better with sparse-index.
* rn/sparse-describe:
describe: enable sparse index for describe
Diffstat (limited to 'builtin/describe.c')
-rw-r--r-- | builtin/describe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/describe.c b/builtin/describe.c index 0125d4ddba..c6b388e649 100644 --- a/builtin/describe.c +++ b/builtin/describe.c @@ -658,6 +658,8 @@ int cmd_describe(int argc, const char **argv, const char *prefix) int fd, result; setup_work_tree(); + prepare_repo_settings(the_repository); + the_repository->settings.command_requires_full_index = 0; repo_read_index(the_repository); refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, NULL, NULL, NULL); |