Re: [PATCH 17/27] sha1_file: add repository argument to stat_sha1_file
Show 13 quoted lines
> Add a repository argument to allow the stat_sha1_file caller to be
> more specific about which repository to act on. 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: Stefan Beller <sbeller@google.com>
> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
> ---
> sha1_file.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
Simple and obviously correct.
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>