]> git.ipfire.org Git - thirdparty/git.git/commit - object.h
object.h: move some inline functions and defines from cache.h
authorElijah Newren <newren@gmail.com>
Tue, 11 Apr 2023 07:41:55 +0000 (00:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Apr 2023 15:52:10 +0000 (08:52 -0700)
commit8876ea83a74b45046c3dabdd5f55f07852bb98ae
tree461f6da7d42283afcaa08e07389747d94a583b77
parentb6fdc44c8441d04c6659252cdf9adae240339e17
object.h: move some inline functions and defines from cache.h

The object_type() inline function is very tied to the enum object_type
declaration within object.h, and just seemed to make more sense to live
there.  That makes S_ISGITLINK and some other defines make sense to go
with it, as well as the create_ce_mode() and canon_mode() inline
functions.  Move all these inline functions and defines from cache.h to
object.h.

Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
object.h