git show

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

Install

tokf install 90e64f1bc37966845f35ed352c6e181042bb2473f2f03cb805313ae482a6579d
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