git log-name-list
built-in 18.8% Savings
2 Commands
63 Tokens saved
3 Tests
Install
Safety checks passed
Filter definition
# git/log-name-list.toml — tree-structured output for git log --name-only / --name-status
# Delegated from git/log via [[variant]] args_pattern.
# No `run` override — the original command runs as-is.
#
# This filter is only reachable via variant delegation — the command below
# uses a synthetic name that won't match any real invocation, preventing
# it from shadowing the parent during filter discovery.
command = "git log-name-list"
description = "Tree-structured name-only / name-status log output"
strip_ansi = true
# git log --name-status interleaves commit metadata with file lists.
# The pattern requires a `/` in the path so commit headers, author lines,
# dates, and message body lines (which are indented or don't contain `/`)
# pass through unmatched.
# Group 1: optional status+tab; Group 2: path (must contain /).
[tree]
pattern = '^([ACDMR]\t)?(\S+/.+)$'
passthrough_unmatched = true
min_files = 3
min_shared_depth = 1
style = "indent"
collapse_single_child = true
Examples
below min_files threshold passes through unchanged
~9 tokens → ~9 tokens
Raw output
commit abc1234 src/lib.rs src/main.rs
Filtered output
commit abc1234 src/lib.rs src/main.rs
commit metadata passes through, paths get tree treatment
~45 tokens → ~41 tokens
(9% saved)
Raw output
commit abc1234
Author: Test User <test@example.com>
Date: Mon Jan 1 12:00:00 2026 +0000
feat: add config parsing
src/config/mod.rs
src/config/types.rs
src/config/variant.rs Filtered output
commit abc1234
Author: Test User <test@example.com>
Date: Mon Jan 1 12:00:00 2026 +0000
feat: add config parsing
src/config/
mod.rs
types.rs
variant.rs name-status with commit metadata preserved
~46 tokens → ~42 tokens
(9% saved)
Raw output
commit abc1234
Author: Test User <test@example.com>
Date: Mon Jan 1 12:00:00 2026 +0000
feat: add config parsing
M src/config/mod.rs
A src/config/types.rs
M src/config/variant.rs Filtered output
commit abc1234
Author: Test User <test@example.com>
Date: Mon Jan 1 12:00:00 2026 +0000
feat: add config parsing
src/config/
M mod.rs
A types.rs
M variant.rs Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters