diff options
| author | Jess Sheneberger <[email protected]> | 2014-10-13 09:57:26 -0600 |
|---|---|---|
| committer | Carlos MartÃn Nieto <[email protected]> | 2014-10-15 15:58:33 +0200 |
| commit | d917a13aca59722f5dca2c5c60eec0e243cbf01b (patch) | |
| tree | 702abc45579a221af73a88575127f436df5b560c /remote.go | |
| parent | 5eda8d6935d6d2b0db9bf3264832e575701696ff (diff) | |
add plumbing for update fetch head on remotes
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
