···212212(* Fetch from URL and return the commit hash for the branch.
213213214214 For file:// URLs (and bare local paths) this uses the native
215215- [Git.Fetch.fetch_local] which copies objects directly between the two
215215+ [Git.Fetch.local] which copies objects directly between the two
216216 on-disk repos — no [git] subprocess, no zlib re-compression of pack
217217 contents, fully cancellable via the Eio switch. The native path covers
218218 the entire monopam test suite and the daily-driver local-checkout flow
···230230 let src_repo = open_local ~sw ~fs src_fpath in
231231 let dst_repo = open_local ~sw ~fs repo in
232232 match
233233- Git.Fetch.fetch_local ~src:src_repo ~dst:dst_repo ~ref_name:branch
233233+ Git.Fetch.local ~src:src_repo ~dst:dst_repo ~ref_name:branch
234234 with
235235 | Ok hash -> Ok (Git.Hash.to_hex hash)
236236 | Error (`Msg msg) -> Error (Io_error msg)
+1-1
lib/git_cli.mli
···141141 and returns the commit hash of [FETCH_HEAD].
142142143143 For [file://] URLs and bare local paths the fetch goes through
144144- {!Git.Fetch.fetch_local} — pure OCaml, no [git] subprocess. HTTP/SSH URLs
144144+ {!Git.Fetch.local} — pure OCaml, no [git] subprocess. HTTP/SSH URLs
145145 still shell out to [git fetch].
146146147147 @param sw