Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
check_branch_commit(): make first parameter const
author
Michael Haggerty
<mhagger@alum.mit.edu>
Mon, 22 Jun 2015 14:03:07 +0000
(16:03 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Jun 2015 20:17:13 +0000
(13:17 -0700)
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>
builtin/branch.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
2433710
)
diff --git
a/builtin/branch.c
b/builtin/branch.c
index b42e5b6dbc76016ca18e5ddd7ded2af613013eb7..47e3eb92235a0bd0ef1b248eabca8ef0c0da51a0 100644
(file)
--- 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);