summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-06-22 16:03:07 +0200
committerJunio C Hamano <gitster@pobox.com>2015-06-22 13:17:13 -0700
commit4eaa4bd800152f20a51e25176a0803d1b7757c7b (patch)
tree1fc44311cefd037167306117b1946eaaaad34b7d
parent243371023e90560f8ef44fa9dfa00f9f01cc1c4d (diff)
downloadgit-4eaa4bd800152f20a51e25176a0803d1b7757c7b.tar.gz
check_branch_commit(): make first parameter const
Make it clear that this function does not overwrite its first argument. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/branch.c2
1 files changed, 1 insertions, 1 deletions
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);