git

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectHost added in v0.2.0

func DetectHost() (hostname string, err error)

DetectHost attempts to detect the Forgejo instance hostname from the current git directory. It reads .git/config and parses the origin remote URL to extract the hostname.

func DetectRepo

func DetectRepo() (owner, name string, err error)

DetectRepo attempts to detect the repository owner/name from the current git directory. It reads .git/config and parses the origin remote URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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