git show

built-in
-43.3% Savings
346 Commands
-118568 Tokens saved
2 Tests

Install

tokf install 09baff5d49b30c0df9dc76de7c6dd9bd46a73d3d668b195d6bf832b18fd61f19
Safety checks passed

Filter definition

command = "git show"
description = "Show --stat summary instead of full patch"

# Override: use --stat for compact summary; full diff can be thousands of lines
run = "git show --stat {args}"
passthrough_args = ["-p", "--patch", "--format", "--pretty"]

[on_success]
output = "{output}"

[on_failure]
tail = 5

Examples

bad revision shows fatal error ~18 tokens → ~18 tokens
Raw output
fatal: bad object 'nonexistent'
fatal: the remote end hung up unexpectedly
Filtered output
fatal: bad object 'nonexistent'
fatal: the remote end hung up unexpectedly
commit stat passes through unchanged ~59 tokens → ~59 tokens
Raw output
commit a1b2c3d4e5f6789012345678901234567890abcd
Author: User <user@example.com>
Date:   Fri Feb 20 12:00:00 2026 +0100

    feat(filter): add new filter

 src/filter/mod.rs | 10 ++++++++++
 1 file changed, 10 insertions(+), 0 deletions(-)
Filtered output
commit a1b2c3d4e5f6789012345678901234567890abcd
Author: User <user@example.com>
Date:   Fri Feb 20 12:00:00 2026 +0100

    feat(filter): add new filter

 src/filter/mod.rs | 10 ++++++++++
 1 file changed, 10 insertions(+), 0 deletions(-)
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters