diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2012-11-01 15:47:18 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2012-11-11 11:56:33 -0600 |
commit | b0f6e45d149c033c9fe41d49af2a87d169d11f40 (patch) | |
tree | 7cc89f19d1ddbe8ded27944756eccc51f57b8205 /include/git2 | |
parent | d18713fb4ad1ba3d18a75272e1c1c3eb45715aba (diff) | |
download | libgit2-b0f6e45d149c033c9fe41d49af2a87d169d11f40.tar.gz |
create FETCH_HEAD specially instead of as a ref file
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/remote.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index d9ccdfda9..44390e7a4 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -401,6 +401,23 @@ GIT_EXTERN(int) git_remote_rename( int (*callback)(const char *problematic_refspec, void *payload), void *payload); +/** + * Retrieve the update FETCH_HEAD setting. + * + * @param remote the remote to query + * @return the update FETCH_HEAD setting + */ +GIT_EXTERN(int) git_remote_update_fetchhead(git_remote *remote); + +/** + * Sets the update FETCH_HEAD setting. By default, FETCH_HEAD will be + * updated on every fetch. Set to 0 to disable. + * + * @param remote the remote to configure + * @param value 0 to disable updating FETCH_HEAD + */ +GIT_EXTERN(void) git_remote_set_update_fetchhead(git_remote *remote, int value); + /** @} */ GIT_END_DECL #endif |