Structs§
Enums§
Functions§
- find_
ignored_ paths - Returns the subset of
rel_paths(repo-root-relative) excluded by either.gitignore(via git’s own engine, so nesting/negation/**are handled correctly) or.diffctx/ignore(patterns anchored per-directory and fed to git as a temporarycore.excludesFile, so the same engine evaluates both mechanisms uniformly). Best-effort: any failure returns an empty set rather than blocking the diff pipeline on an ignore-resolution problem. - find_
toplevel - Resolves the actual working-tree root for
path, which may be a subdirectory of the repository.git diff/git cat-filepaths are always reported relative to this root, not to an arbitrary-Ccwd - running the pipeline withpathstill set to a subdirectory silently produces zero fragments because file lookups get double-prefixed (e.g.src/src/app.py). - get_
changed_ files - get_
commit_ message - get_
deleted_ files - get_
diff_ text - get_
rename_ pairs - Rename pairs as repo-relative display paths (
old -> new), for the output header. Unlikeget_renamed_pathsthis preserves the pairing and does not canonicalize (the old path no longer exists on disk). - get_
renamed_ paths - get_
untracked_ files - git_
command - Always targets the repo via
-C. - is_
git_ repo - parse_
diff - run_git
- run_
git_ z - set_
git_ timeout - show_
file_ at_ revision - split_
diff_ range