Documentation
¶
Overview ¶
Package checkout answers whether a directory is the root of another Git checkout. Every walk and loader that skips such a directory asks this package, so they cannot disagree about what a repository contains. Nothing here imports Kivgraph, which lets the configuration package use it without a cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOtherCheckout ¶
IsOtherCheckout reports whether directory is the root of another Git checkout: a clone, or a worktree linked from any repository. Git does not look inside one, and a walk that entered one would index the same files a second time.
A submodule has the same two forms of `.git`, so its shape cannot tell it from a checkout. The repository that encloses it lists it in .gitmodules, and that list is the answer. Callers pass an absolute path, never the repository root.
Types ¶
This section is empty.