Crates.io | litcat |
lib.rs | litcat |
version | 0.1.4 |
created_at | 2025-07-17 21:05:25.497355+00 |
updated_at | 2025-08-15 08:46:42.136382+00 |
description | A CLI tool for viewing patches with colors |
homepage | https://github.com/shan-shaji/litcat |
repository | |
max_upload_size | |
id | 1758120 |
size | 13,132 |
litcat is a simple Rust CLI tool for viewing patch and diff files with highlighting. It colors added (+
), removed (-
), and context lines to make git diffs easier to read in your terminal.
Colors added lines in green
Colors removed lines in red
Colors diff headers and hunk markers
Reads from a file or standard input (pipe)
litcat xxx.patch
cat diff.patch | litcat
Lines starting with +
(but not +++
) are green
Lines starting with -
(but not ---
) are red
Diff headers (+++
, ---
) are cyan
Hunk markers (@@ ... @@
) are yellow
All other lines are default color
git clone https://github.com/shan-shaji/litcat.git
cd litcat
cargo build --release
~/.cargo/bin
.you can install directly using cargo:
cargo install litcat