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 @@ -176,6 +176,32 @@ func (v *Odb) Read(oid *Oid) (obj *OdbObject, err error) {
176176 return obj , nil
177177}
178178
179+ func (odb * Odb ) Refresh () error {
180+ runtime .LockOSThread ()
181+ defer runtime .UnlockOSThread ()
182+
183+ ret := C .git_odb_refresh (odb .ptr )
184+ runtime .KeepAlive (odb )
185+ if ret < 0 {
186+ return MakeGitError (ret )
187+ }
188+
189+ return nil
190+ }
191+
192+ func (odb * Odb ) WriteMultiPackIndex () error {
193+ runtime .LockOSThread ()
194+ defer runtime .UnlockOSThread ()
195+
196+ ret := C .git_odb_write_multi_pack_index (odb .ptr )
197+ runtime .KeepAlive (odb )
198+ if ret < 0 {
199+ return MakeGitError (ret )
200+ }
201+
202+ return nil
203+ }
204+
179205type OdbForEachCallback func (id * Oid ) error
180206type odbForEachCallbackData struct {
181207 callback OdbForEachCallback
You can’t perform that action at this time.
0 commit comments