pub async fn read_head(fs: &dyn FileSystem, dir: &Path) -> Option<Head>Expand description
The HEAD of the repository dir is in: the first .git in dir or
above it, a directory or a file whose gitdir: line names one. None
where there is no repository or its HEAD cannot be read.
For a snapshot of a repository whose git the engine may not run: nothing in the repository is executed or interpreted beyond these two files.