giff

Crates.iogiff
lib.rsgiff
version0.1.0
sourcesrc
created_at2024-08-06 11:37:49.941952
updated_at2024-08-06 11:37:49.941952
descriptionVisualizes 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.
homepagehttps://github.com/bahdotsh/giff
repositoryhttps://github.com/bahdotsh/giff
max_upload_size
id1327184
size35,214
Gokul (bahdotsh)

documentation

https://github.com/bahdotsh/giff

README

giff

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.

Features

  • 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.

Requirements

  • Rust (latest stable version)
  • Git
  • A terminal supporting ANSI escape codes for color output

Dependencies

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.

Installation

cargo install giff

From source

git clone https://github.com/bahdotsh/giff.git
cd giff
cargo install --path .

Usage

giff -b branch //by default, the branch will be main

Example Output

Screenshot 2024-08-06 at 3 34 30 PM
Commit count: 0

cargo fmt