Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darrenburns/dunk
Prettier git diffs in the terminal 🎨
https://github.com/darrenburns/dunk
cli diff git terminal
Last synced: 3 days ago
JSON representation
Prettier git diffs in the terminal 🎨
- Host: GitHub
- URL: https://github.com/darrenburns/dunk
- Owner: darrenburns
- Created: 2022-04-02T19:47:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-30T22:49:25.000Z (23 days ago)
- Last Synced: 2024-12-14T23:25:15.001Z (9 days ago)
- Topics: cli, diff, git, terminal
- Language: Python
- Homepage:
- Size: 101 KB
- Stars: 772
- Watchers: 7
- Forks: 16
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-diff-tools - dunk - Postprocesses the output of git diff to generate side-by-side diffs, supports syntax highlighting and highlights inline changes. (Source Code / Diff Enhancers)
- awesome-textualize-projects - Dunk - Prettier git diffs in the terminal 🎨. (Community / Third Party Applications)
README
# dunk
Pipe your `git diff` output into `dunk` to make it prettier!
![image](https://user-images.githubusercontent.com/5740731/162084469-718a8b48-a176-4657-961a-f45e157ff562.png)
> ⚠️ This project is **very** early stages - expect crashes, bugs, and confusing output!
## Quick Start
I recommend you install using `pipx`, which will allow you to use `dunk` from anywhere.
```
pipx install dunk
```## Basic Usage
Pipe the output of `git diff` into `dunk`:
```
git diff | dunk
```or add it to git as an alias:
```
git config --global alias.dunk '!git diff | dunk'
```### Paging
You can pipe output from `dunk` into a pager such as `less`:
```
git diff | dunk | less -R
```