From d917a13aca59722f5dca2c5c60eec0e243cbf01b Mon Sep 17 00:00:00 2001 From: Jess Sheneberger Date: Mon, 13 Oct 2014 09:57:26 -0600 Subject: add plumbing for update fetch head on remotes --- remote.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'remote.go') diff --git a/remote.go b/remote.go index 74ebe27..f13bad3 100644 --- a/remote.go +++ b/remote.go @@ -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 -- cgit v1.2.3