summaryrefslogtreecommitdiff
path: root/git-archimport.perl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-10 17:39:04 -0400
committerJunio C Hamano <gitster@pobox.com>2014-06-12 10:29:42 -0700
commit969eba6341a5af8ac52c67e26462548ed05e23e3 (patch)
tree5ad116ce4e50cd2396c16d6de4f17cdb4cd30e80 /git-archimport.perl
parentc335d74d349d201cb7627aa7233638d2953a4b02 (diff)
downloadgit-969eba6341a5af8ac52c67e26462548ed05e23e3.tar.gz
commit: push commit_index update into alloc_commit_node
Whenever we create a commit object via lookup_commit, we give it a unique index to be used with the commit-slab API. The theory is that any "struct commit" we create would follow this code path, so any such struct would get an index. However, callers could use alloc_commit_node() directly (and get multiple commits with index 0). Let's push the indexing into alloc_commit_node so that it's hard for callers to get it wrong. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-archimport.perl')
0 files changed, 0 insertions, 0 deletions