repofiles

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package repofiles enumerates the files that are actually part of a project — honoring .gitignore — so the engine never mistakes vendored, generated, cached or ignored files (node_modules, docker volumes, build output) for real source. It uses `git ls-files` (tracked + untracked-but-not-ignored) and falls back to a filtered filesystem walk only when the directory isn't a git repo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(root, rel string) bool

Exists reports whether path (relative to root) is a real, non-ignored file.

func List

func List(ctx context.Context, root string) []string

List returns project files as slash paths relative to root, excluding anything git ignores AND anything inside a VENDORED tree (vendor/, internal/forks/, third_party/, …) — code that is tracked but is a checked-in third-party dependency, not this project's own source. (A first-party submodule like services/api is NOT vendored and stays — structure detection wants it.) Order is unspecified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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