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: about 2 months 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: 2022-06-12T04:12:37.000Z (over 2 years ago)
- Last Synced: 2024-04-16T03:57:46.024Z (5 months ago)
- Topics: cli, diff, git, terminal
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 689
- Watchers: 10
- Forks: 13
- Open Issues: 15
-
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
```