This Rust program visualizes the differences between the current HEAD and a specified branch in a git repository using a formatted table output in your terminal. The differences are displayed with color-coded additions and deletions for better readability.
- Branch Comparison: Compare changes between the current HEAD and a specified branch.
- Color-coded Output: Additions are displayed in green and deletions in red.
- Table Formatting: Uses
comfy_table
to format the output.
- Rust (latest stable version)
- Git
- A terminal supporting ANSI escape codes for color output
This project uses the following Rust crates:
clap
: For command-line argument parsing.comfy_table
: For creating and formatting tables.crossterm
: For terminal manipulation.regex
: For parsing git diff output.
cargo install rdiff
git clone https://github.com/bahdotsh/rdiff.git
cd rdiff
cargo install --path .
rdiff -b branch //by default, the branch will be main