From: Michael Haggerty Date: Mon, 22 Jun 2015 14:03:07 GMT Subject: [PATCH v3 16/19] check_branch_commit(): make first parameter const Message-ID: <284c129521a0287fc0f4260c4b4e8751d675419a.1434980615.git.mhagger@alum.mit.edu> In-Reply-To: Make it clear that this function does not overwrite its first argument. Signed-off-by: Michael Haggerty --- builtin/branch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/branch.c b/builtin/branch.c index b42e5b6..47e3eb9 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); -- 2.1.4