]> git.ipfire.org Git - thirdparty/git.git/commit - read-cache.c
read-cache: move shared commit and ls-files code
authorElijah Newren <newren@gmail.com>
Tue, 16 May 2023 06:33:45 +0000 (06:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jun 2023 20:39:53 +0000 (13:39 -0700)
commit1a40e7be6cb7dda07d23d8beb84622e63d1aa42c
tree1ce6c8acbf773c3684ac577732a46406827865ea
parente8cf8ef5075d7805846f0f7159f8d072b07e588e
read-cache: move shared commit and ls-files code

The function overlay_tree_on_index(), plus associated helper functions,
were defined in builtin/ls-files.c, but also shared with
builtin/commit.c.  Move these shared functions to read-cache.c.

Diff best viewed with `--color-moved`.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c
read-cache.c