]> git.ipfire.org Git - thirdparty/git.git/commit - notes.c
load_subtree(): combine some common code
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 26 Aug 2017 08:28:09 +0000 (10:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Aug 2017 16:21:01 +0000 (09:21 -0700)
commit4ebef533d75a197f660b38d615489ad8a233bba1
tree5bb2916f395204ce53a9340c0915d03583c6bb4a
parent67c9b422513ac601c68c191a026af968a2838ae1
load_subtree(): combine some common code

Write the length into `object_oid` (before copying) rather than
`l->key_oid` (after copying). Then combine some code from the two `if`
blocks.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c