statinfo: move stat_{data,validity} functions from cache/read-cache
commit90cbae9ce5d22df29867be9026c514b8c79e3d31
authorElijah Newren <newren@gmail.com>
Tue, 16 May 2023 06:33:48 +0000 (16 06:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jun 2023 20:39:53 +0000 (21 13:39 -0700)
tree71555e4f3fd1e7d6027880a5667cc60a8ead8b06
parent6cee5ebc7af2a05dce64d04ac2ed6aa7ed872f88
statinfo: move stat_{data,validity} functions from cache/read-cache

These functions do not depend upon struct cache_entry or struct
index_state in any way, and it seems more logical to break them out into
this file, especially since statinfo.h already has the struct stat_data
declaration.

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

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
cache.h
object.c
read-cache.c
refs/packed-backend.c
shallow.c
statinfo.c [new file with mode: 0644]
statinfo.h