From: Linus Torvalds Date: Sat, 23 Feb 2008 04:41:17 +0000 (-0800) Subject: Use helper function for copying index entry information X-Git-Tag: v1.5.5-rc0~162 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/eb7a2f1d50ca8620b087dd2751d0fe2505e7974f?ds=inline;hp=eb7a2f1d50ca8620b087dd2751d0fe2505e7974f Use helper function for copying index entry information We used to just memcpy() the index entry when we copied the stat() and SHA1 hash information, which worked well enough back when the index entry was just an exact bit-for-bit representation of the information on disk. However, these days we actually have various management information in the cache entry too, and we should be careful to not overwrite it when we copy the stat information from another index entry. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano ---