diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-04-03 15:50:21 +0200 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-04-03 16:06:31 +0200 |
commit | 3b4ba2787049c561cd7a9e3fea8fc16e473a0b32 (patch) | |
tree | 14f1ba819d09fce9872eb31db424b30274447d02 /include/git2/branch.h | |
parent | fd61f05ea605155ed9e56bfad0e804c6718e0611 (diff) | |
download | libgit2-3b4ba2787049c561cd7a9e3fea8fc16e473a0b32.tar.gz |
Const correctness!
Diffstat (limited to 'include/git2/branch.h')
-rw-r--r-- | include/git2/branch.h | 7 |
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 |