Metadata-Version: 2.4
Name: gdiff
Version: 0.1.0
Summary: Web-based side-by-side git diff viewer
Project-URL: Homepage, https://github.com/younesboukdir/gdiff
Project-URL: Issues, https://github.com/younesboukdir/gdiff/issues
Author: Younes Boukdir
License-Expression: MIT
License-File: LICENSE
Keywords: diff,git,side-by-side,viewer,web
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Version Control :: Git
Classifier: Topic :: Text Processing :: General
Requires-Python: >=3.8
Provides-Extra: highlight
Requires-Dist: pygments>=2.10; extra == 'highlight'
Description-Content-Type: text/markdown

# gdiff

A web-based side-by-side git diff viewer. Generates a self-contained HTML page with syntax highlighting and opens it in your browser.

## Installation

```bash
pip install gdiff
```

For syntax highlighting (recommended):

```bash
pip install gdiff[highlight]
```

## Usage

```bash
# Diff a specific file
gdiff path/to/file.py

# Staged changes
gdiff --staged path/to/file.py

# All unstaged changes
gdiff

# Pipe mode
git diff | gdiff

# Save without opening browser
gdiff --no-open -o diff.html

# Compare branches/commits
gdiff main..feature -- path/to/file.py
```

## Features

- **Side-by-side view** with old code on the left, new code on the right
- **Syntax highlighting** for 500+ languages (via pygments)
- **Dark theme** inspired by GitHub
- **Line numbers** on both sides
- **File navigation** header with clickable links
- **Keyboard navigation** (`j`/`k` to jump between files)
- **Zero config** - works out of the box
- **Fully offline** - generates a self-contained HTML file

## Requirements

- Python 3.8+
- Git

## License

MIT - Younes Boukdir
