summaryrefslogtreecommitdiff
path: root/include/git2/branch.h
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 /include/git2/branch.h
parentfd61f05ea605155ed9e56bfad0e804c6718e0611 (diff)
downloadlibgit2-3b4ba2787049c561cd7a9e3fea8fc16e473a0b32.tar.gz
Const correctness!
Diffstat (limited to 'include/git2/branch.h')
-rw-r--r--include/git2/branch.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h
index d2762019b..ad2a70b1f 100644
--- a/include/git2/branch.h
+++ b/include/git2/branch.h
@@ -179,8 +179,9 @@ GIT_EXTERN(int) git_branch_lookup(
* @return 0 on success; otherwise an error code (e.g., if the
* ref is no local or remote branch).
*/
-GIT_EXTERN(int) git_branch_name(const char **out,
- git_reference *ref);
+GIT_EXTERN(int) git_branch_name(
+ const char **out,
+ const git_reference *ref);
/**
* Return the reference supporting the remote tracking branch,
@@ -196,7 +197,7 @@ GIT_EXTERN(int) git_branch_name(const char **out,
*/
GIT_EXTERN(int) git_branch_upstream(
git_reference **out,
- git_reference *branch);
+ const git_reference *branch);
/**
* Set the upstream configuration for a given local branch