]> git.ipfire.org Git - thirdparty/git.git/commit - shallow.c
commit: add repository argument to register_commit_graft
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 15 May 2018 23:42:18 +0000 (16:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 May 2018 02:42:03 +0000 (11:42 +0900)
commit3f5787f80662b8f5dbd6fb83d5ca20be224e8a08
tree887f16f248e5842981b299af011a83fa71af9abd
parentbe479e801da46b591844467229f003cdcd262e3e
commit: add repository argument to register_commit_graft

Add a repository argument to allow callers of register_commit_graft to
be more specific about which repository to handle. This is a small
mechanical change; it doesn't change the implementation to handle
repositories other than the_repository yet.

As with the previous commits, use a macro to catch callers passing a
repository other than the_repository at compile time.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
commit.c
commit.h
shallow.c