Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 839 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 839 Bytes

gitr

Lightweight terminal-launched Git diff viewer. Two-panel GUI: coloured diff on the left, clickable file list on the right.

Install

uv tool install .

Or just point an alias at the script directly (no install step needed):

alias gitr=~/path/to/gitr/gitr.py

Usage

gitr                         # git diff (unstaged changes)
gitr master                  # git diff master (to working tree)
gitr --merge-base master     # diff from common ancestor to working tree
gitr master HEAD             # git diff master HEAD (committed only)

git diff | gitr              # pipe a patch
gitr -                       # read stdin explicitly
gitr -p patch.diff           # read from a patch file

Requirements

Python 3.10+, Tkinter (included in most Python distributions). No other dependencies.