diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-10-27 12:33:58 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-05 13:47:45 -0800 |
| commit | 9dfa7ac3be181210dafd09ad68d10790a0810e18 (patch) | |
| tree | d0694dbf021f20a81f83606159b9ebc72f3959c3 /commit.h | |
| parent | add-patch: add support for in-memory index patching (diff) | |
| download | git-9dfa7ac3be181210dafd09ad68d10790a0810e18.tar.gz git-9dfa7ac3be181210dafd09ad68d10790a0810e18.zip | |
cache-tree: allow writing in-memory index as tree
The function `write_in_core_index_as_tree()` takes a repository and
writes its index into a tree object. What this function cannot do though
is to take an _arbitrary_ in-memory index.
Introduce a new `struct index_state` parameter so that the caller can
pass a different index than the one belonging to the repository. This
will be used in a subsequent commit.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions
