summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-03-18 14:46:42 +0100
committerVicent Marti <vicent@github.com>2014-03-18 14:46:42 +0100
commita7af1f7dd6929d2c903aa932ae5ea10d368e75d0 (patch)
treebb5a769fdf4144be4e5268e922916d38aa78d2e0 /include/git2
parentdd5e74e59af7597938bdcedd3cb240d3c693ea1f (diff)
parent4b7e1b9e927eec2359f178a260335109d4222e2b (diff)
downloadlibgit2-a7af1f7dd6929d2c903aa932ae5ea10d368e75d0.tar.gz
Merge pull request #2190 from libgit2/cmn/current-branch-reflog
refs: append to the HEAD reflog when updating the current branch
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/branch.h2
-rw-r--r--include/git2/refs.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h
index 46aef3206..d2762019b 100644
--- a/include/git2/branch.h
+++ b/include/git2/branch.h
@@ -238,7 +238,7 @@ GIT_EXTERN(int) git_branch_upstream_name(
* error code otherwise.
*/
GIT_EXTERN(int) git_branch_is_head(
- git_reference *branch);
+ const git_reference *branch);
/**
* Return the name of remote that the remote tracking branch belongs to.
diff --git a/include/git2/refs.h b/include/git2/refs.h
index 65449e69e..1bbb4ca46 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -586,7 +586,7 @@ GIT_EXTERN(int) git_reference_ensure_log(git_repository *repo, const char *refna
* @return 1 when the reference lives in the refs/heads
* namespace; 0 otherwise.
*/
-GIT_EXTERN(int) git_reference_is_branch(git_reference *ref);
+GIT_EXTERN(int) git_reference_is_branch(const git_reference *ref);
/**
* Check if a reference is a remote tracking branch