git show

built-in
-10.3% Savings
6 Commands
-465 Tokens saved
2 Tests

Install

tokf install 1abe48450b9afce6a0ea0e2c021c002eb9ade8852b0e1a8ddd60b0e59dca0449
Safety checks passed

Filter definition

command = "git show"

# 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