git show

built-in
-52.4% Savings
91 Commands
-51455 Tokens saved
2 Tests

Install

tokf install 84a055f2c6d1a52fd487f783ec9b615887ea809fb6708fc06d2ed431b2c11423
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}"

[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