Skip to content
mathecruzPublic

About

Local GitHub-style compare page for any Git repository. No GitHub, no push.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quiff logo

Local GitHub-style compare page for any Git repository. No GitHub, no push.


  • Pick base and compare refs (branches, remote branches, tags, or Working tree).
  • Working tree = current branch + staged, unstaged and untracked files.
  • Three-dot compare, like GitHub: shows what compare adds since it forked from base.
  • Unified diff, file tree with filter, "Viewed" checkboxes, hide whitespace, commits tab.
  • Listens on localhost:8790 only.

Requirements

  • Java 17 or newer
  • Maven 3.9+
  • Git
  • curl and open (macOS) or xdg-open (Linux), used to open the browser

Install

git clone https://github.com/mathecruz/quiff.git ~/workspace/quiff
cd ~/workspace/quiff
mvn package

mvn package builds target/quarkus-app/quarkus-run.jar and runs the tests. You can skip this step: bin/quiff builds the jar on its first run if it is missing.

Run

From inside any Git repository:

cd /path/to/any/repo
~/workspace/quiff/bin/quiff          # base = main/master
~/workspace/quiff/bin/quiff develop  # explicit base, compared against the working tree

quiff starts the server, opens http://localhost:8790/ in your browser and keeps running until you press Ctrl+C.

Change the port

QUIFF_PORT=9000 ~/workspace/quiff/bin/quiff

Use it as git quiff

git config --global alias.quiff '!~/workspace/quiff/bin/quiff'

Then, in any repository:

git quiff
git quiff develop

Update

bin/quiff only builds the jar when it does not exist. After pulling new changes, rebuild it:

cd ~/workspace/quiff
git pull
mvn package

Develop

mvn quarkus:dev -Dquiff.repo=/path/to/repo   # live reload, compares /path/to/repo
mvn package                                  # runs the tests against a temporary Git repository

About

Local GitHub-style compare page for any Git repository. No GitHub, no push.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages