summaryrefslogtreecommitdiff
path: root/remote.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-10-15 15:59:08 +0200
committerCarlos Martín Nieto <[email protected]>2014-10-15 15:59:08 +0200
commita81abd10ca4786d5ad30aff8ac72f59896d12211 (patch)
tree12c3fd087daba35a75ae1374f32ae9a905e51c1f /remote.go
parent17a9214307250b5fd2769385c73b723d55a26dab (diff)
parentd917a13aca59722f5dca2c5c60eec0e243cbf01b (diff)
Merge branch 'fetchhead'
Conflicts: remote.go
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index 1ff9092..4e5005f 100644
--- a/remote.go
+++ b/remote.go
@@ -461,6 +461,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
+}
+
// Fetch performs a fetch operation. refspecs specifies which refspecs
// to use for this fetch, use an empty list to use the refspecs from
// the configuration; sig and msg specify what to use for the reflog