git

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffToMain added in v0.8.0

func DiffToMain() ([]string, error)

DiffToMain returns a list of files that have been changed compared to the main branch. Files have to be staged or committed.

func IsTracked added in v0.20.3

func IsTracked(path string) bool

IsTracked returns true if the file is tracked by git

func NormalizeGitURL

func NormalizeGitURL(rawURL string) (string, error)

NormalizeGitURL parses git or https git URLs and returns an https URL.

func RepoURL

func RepoURL() (string, error)

RepoURL returns the remote URL to the git repository

func SHA256

func SHA256() (string, error)

SHA256 returns the hash of the current commit

Types

This section is empty.

Jump to

Keyboard shortcuts

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