repofiles

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 7 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 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