git

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package git provides utilities for interacting with Git repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LsFiles

func LsFiles(rootPath string) ([]string, error)

LsFiles lists absolute file paths of all files in the specified repository path, excluding those ignored by .gitignore. Only .gitignore files in the root of the repository are considered. Symlinks are listed as files.

Note that the target directory is scanned regardless of whether it contains a .git subdirectory. This means LsFiles returns files for any directory, not just Git repositories.

Types

This section is empty.

Jump to

Keyboard shortcuts

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