git log

built-in
0.0% Savings
27 Commands
0 Tokens saved
2 Tests

Install

tokf install 84870be10b2469de2075da9ebfe0aefcd8e9125217609766e5b089186633cc6c
Safety checks passed

Filter definition

# git-log.toml — Override command to get compact format
# Raw: multi-line commit entries with full metadata
# Filtered: one-line-per-commit format

command = "git log"

# Override to get compact output directly from git
run = "git log --oneline --no-decorate -n 20 {args}"
passthrough_args = ["-p", "--patch", "--format", "--pretty", "--graph", "--stat"]

# Nothing to filter — the override command already produces compact output
# But if args include --stat or --patch, passthrough
[on_success]
output = "{output}"

Examples

empty git log produces no output ~0 tokens → ~0 tokens
Raw output
 
Filtered output
 
git log output passes through unchanged ~64 tokens → ~64 tokens
Raw output
a1b2c3d feat(filter): implement section state machine
e4f5g6h feat(filter): implement group/parse pipeline
i7j8k9l feat(filter): implement skip/keep filtering
m0n1o2p feat(runner): implement command execution
q3r4s5t feat(config): implement FilterConfig types
Filtered output
a1b2c3d feat(filter): implement section state machine
e4f5g6h feat(filter): implement group/parse pipeline
i7j8k9l feat(filter): implement skip/keep filtering
m0n1o2p feat(runner): implement command execution
q3r4s5t feat(config): implement FilterConfig types
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters