summaryrefslogtreecommitdiff
path: root/src/branch.c
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-04-03 15:50:21 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-04-03 16:06:31 +0200
commit3b4ba2787049c561cd7a9e3fea8fc16e473a0b32 (patch)
tree14f1ba819d09fce9872eb31db424b30274447d02 /src/branch.c
parentfd61f05ea605155ed9e56bfad0e804c6718e0611 (diff)
downloadlibgit2-3b4ba2787049c561cd7a9e3fea8fc16e473a0b32.tar.gz
Const correctness!
Diffstat (limited to 'src/branch.c')
-rw-r--r--src/branch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/branch.c b/src/branch.c
index df665a469..63c6ec110 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -281,7 +281,9 @@ int git_branch_lookup(
return retrieve_branch_reference(ref_out, repo, branch_name, branch_type == GIT_BRANCH_REMOTE);
}
-int git_branch_name(const char **out, git_reference *ref)
+int git_branch_name(
+ const char **out,
+ const git_reference *ref)
{
const char *branch_name;
@@ -450,8 +452,8 @@ cleanup:
}
int git_branch_upstream(
- git_reference **tracking_out,
- git_reference *branch)
+ git_reference **tracking_out,
+ const git_reference *branch)
{
int error;
git_buf tracking_name = GIT_BUF_INIT;