Skip to content
  • Jeff King's avatar
    alloc: factor out commit index · 94d5a22c
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    We keep a static counter to set the commit index on newly
    allocated objects. However, since we also need to set the
    index on any_objects which are converted to commits, let's
    make the counter available as a public function.
    
    While we're moving it, let's make sure the counter is
    allocated as an unsigned integer to match the index field in
    "struct commit".
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    94d5a22c