add plumbing for update fetch head on remotes

This commit is contained in:
Jess Sheneberger 2014-10-13 09:57:26 -06:00 committed by Carlos Martín Nieto
parent 5eda8d6935
commit d917a13aca
2 changed files with 9 additions and 1 deletions

View File

@ -433,6 +433,14 @@ func (o *Remote) RefspecCount() uint {
return uint(C.git_remote_refspec_count(o.ptr))
}
func (o *Remote) SetUpdateFetchHead(val bool) {
C.git_remote_set_update_fetchhead(o.ptr, cbool(val))
}
func (o *Remote) UpdateFetchHead() bool {
return C.git_remote_update_fetchhead(o.ptr) > 0
}
func (o *Remote) Fetch(sig *Signature, msg string) error {
var csig *C.git_signature = nil

2
vendor/libgit2 vendored

@ -1 +1 @@
Subproject commit 89e05e2ab19ac452e84e0eaa2dfb8e07ac6839bf
Subproject commit e0383fa35f981c656043976a43c61bff059cb709