diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-10-02 07:46:24 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-10-02 07:46:25 -0700 |
| commit | 9293a931868f21029baf55935f2f092c3f06415f (patch) | |
| tree | 1b7b2551124cf83a4c52ce01b8f1bbe8d85c4cda /sparse-index.h | |
| parent | another batch after 2.47-rc0 (diff) | |
| parent | sparse-checkout: disable advice in 'disable' (diff) | |
| download | git-9293a931868f21029baf55935f2f092c3f06415f.tar.gz git-9293a931868f21029baf55935f2f092c3f06415f.zip | |
Merge branch 'ds/sparse-checkout-expansion-advice'
When "git sparse-checkout disable" turns a sparse checkout into a
regular checkout, the index is fully expanded. This totally
expected behaviour however had an "oops, we are expanding the
index" advice message, which has been corrected.
* ds/sparse-checkout-expansion-advice:
sparse-checkout: disable advice in 'disable'
Diffstat (limited to 'sparse-index.h')
| -rw-r--r-- | sparse-index.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sparse-index.h b/sparse-index.h index a16f3e67d7..727034be7c 100644 --- a/sparse-index.h +++ b/sparse-index.h @@ -1,6 +1,13 @@ #ifndef SPARSE_INDEX_H__ #define SPARSE_INDEX_H__ +/* + * If performing an operation where the index is supposed to expand to a + * full index, then disable the advice message by setting this global to + * zero. + */ +extern int give_advice_on_expansion; + struct index_state; #define SPARSE_INDEX_MEMORY_ONLY (1 << 0) int is_sparse_index_allowed(struct index_state *istate, int flags); |
