File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,32 @@ func (v *Odb) Read(oid *Oid) (obj *OdbObject, err error) {
174
174
return obj , nil
175
175
}
176
176
177
+ func (odb * Odb ) Refresh () error {
178
+ runtime .LockOSThread ()
179
+ defer runtime .UnlockOSThread ()
180
+
181
+ ret := C .git_odb_refresh (odb .ptr )
182
+ runtime .KeepAlive (odb )
183
+ if ret < 0 {
184
+ return MakeGitError (ret )
185
+ }
186
+
187
+ return nil
188
+ }
189
+
190
+ func (odb * Odb ) WriteMultiPackIndex () error {
191
+ runtime .LockOSThread ()
192
+ defer runtime .UnlockOSThread ()
193
+
194
+ ret := C .git_odb_write_multi_pack_index (odb .ptr )
195
+ runtime .KeepAlive (odb )
196
+ if ret < 0 {
197
+ return MakeGitError (ret )
198
+ }
199
+
200
+ return nil
201
+ }
202
+
177
203
type OdbForEachCallback func (id * Oid ) error
178
204
179
205
type foreachData struct {
You can’t perform that action at this time.
0 commit comments