From: Michael Haggerty Date: Mon, 22 Jun 2015 14:03:07 +0000 (+0200) Subject: check_branch_commit(): make first parameter const X-Git-Tag: v2.6.0-rc0~105^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4eaa4bd800152f20a51e25176a0803d1b7757c7b check_branch_commit(): make first parameter const Make it clear that this function does not overwrite its first argument. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/builtin/branch.c b/builtin/branch.c index b42e5b6dbc..47e3eb9223 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -160,7 +160,7 @@ static int branch_merged(int kind, const char *name, } static int check_branch_commit(const char *branchname, const char *refname, - unsigned char *sha1, struct commit *head_rev, + const unsigned char *sha1, struct commit *head_rev, int kinds, int force) { struct commit *rev = lookup_commit_reference(sha1);