]> git.ipfire.org Git - thirdparty/git.git/commit
alloc: add repository argument to alloc_commit_index
authorStefan Beller <sbeller@google.com>
Tue, 8 May 2018 19:37:33 +0000 (12:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 May 2018 03:12:36 +0000 (12:12 +0900)
commitdd5d9deb0155a27cb2d74d1a0faf0af84ef5f355
tree9be9ce4fda0e7b0d5ea7b1f9655897f24513f929
parent17bfe87369a726ebf3b1156ffd38c014bbd67e88
alloc: add repository argument to alloc_commit_index

This is a small mechanical change; it doesn't change the
implementation to handle repositories other than the_repository yet.
Use a macro to catch callers passing a repository other than
the_repository at compile time.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
alloc.c
cache.h
object.c