diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-02-15 11:35:33 +0100 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-02-22 17:04:23 +0100 |
commit | c1b5e8c42bca585c2bc728a0583b20095bd8c128 (patch) | |
tree | b70cce66af1d9834bb37515a3e01167f1ab5a588 /include/git2 | |
parent | 0309e85045bfb143c172b3342293d98d687e8092 (diff) | |
download | libgit2-c1b5e8c42bca585c2bc728a0583b20095bd8c128.tar.gz |
branch: Make git_branch_remote_name() cope with orphaned heads
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/branch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h index 3c7fb443c..d372c2c92 100644 --- a/include/git2/branch.h +++ b/include/git2/branch.h @@ -221,7 +221,7 @@ GIT_EXTERN(int) git_branch_is_head( * * @param repo The repository where the branch lives. * - * @param branch The reference to the remote tracking branch. + * @param canonical_branch_name name of the remote tracking branch. * * @return Number of characters in the reference name * including the trailing NUL byte; GIT_ENOTFOUND @@ -233,7 +233,7 @@ GIT_EXTERN(int) git_branch_remote_name( char *remote_name_out, size_t buffer_size, git_repository *repo, - git_reference *branch); + const char *canonical_branch_name); /** @} */ GIT_END_DECL |