diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2023-01-12 13:55:26 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-01-13 10:36:58 -0800 |
| commit | 5bdf6d4ac0d06817ce22322aa0172b49e6026544 (patch) | |
| tree | 33dab558b2c6682bf7654471357514a5a0d7a8ed /merge-recursive.c | |
| parent | sparse-index API: BUG() out on NULL ensure_full_index() (diff) | |
| download | git-5bdf6d4ac0d06817ce22322aa0172b49e6026544.tar.gz git-5bdf6d4ac0d06817ce22322aa0172b49e6026544.zip | |
read-cache.c: refactor set_new_index_sparsity() for subsequent commit
Refactor code added to set_new_index_sparsity() in [1] to eliminate
indentation resulting from putting the body of his function within the
"if" block. Let's instead return early if we have no
istate->repo. This trivial change makes the subsequent commit's diff
smaller.
1. 491df5f679f (read-cache: set sparsity when index is new, 2022-05-10)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-recursive.c')
0 files changed, 0 insertions, 0 deletions
