checkout

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func IsOtherCheckout(directory string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL