]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
cache: mark cache_entry pointers const
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 2 Jun 2013 15:46:51 +0000 (17:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Jun 2013 22:31:12 +0000 (15:31 -0700)
commit20d142b48c8f2f50662db095e193836d0a8f5ad1
tree8a176d8db7e8fa7361c825b63ba324bbeb1b08d8
parentedca4152560522a431a51fc0a06147fc680b5b18
cache: mark cache_entry pointers const

Add const for pointers that are only dereferenced for reading by the
inline functions copy_cache_entry and ce_mode_from_stat.  This allows
callers to pass in const pointers.

Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h