summaryrefslogtreecommitdiff
path: root/builtin/branch.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-06-22 14:03:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-22 20:17:13 (GMT)
commit4eaa4bd800152f20a51e25176a0803d1b7757c7b (patch)
tree1fc44311cefd037167306117b1946eaaaad34b7d /builtin/branch.c
parent243371023e90560f8ef44fa9dfa00f9f01cc1c4d (diff)
downloadgit-4eaa4bd800152f20a51e25176a0803d1b7757c7b.zip
git-4eaa4bd800152f20a51e25176a0803d1b7757c7b.tar.gz
git-4eaa4bd800152f20a51e25176a0803d1b7757c7b.tar.bz2
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>
Diffstat (limited to 'builtin/branch.c')
-rw-r--r--builtin/branch.c2
1 files changed, 1 insertions, 1 deletions
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);