gitui/README.md

54 lines
1.5 KiB
Markdown
Raw Normal View History

2020-03-19 03:36:27 +03:00
# gitui
2020-03-18 13:40:54 +03:00
blazing fast terminal-ui for git written in rust
2020-03-16 19:20:28 +03:00
2020-03-18 02:58:31 +03:00
![img](assets/main.jpg)
## motivation
2020-03-19 19:59:31 +03:00
I do most of my git usage in a terminal but I frequently found myself using git UIs for some use cases like: index/commit, diff, stash and log.
Over the last 2 years my go-to GUI tool for this was [fork](https://git-fork.com) because it was not bloated, snappy and free. Unfortunately the *free* part will [change soon](https://github.com/ForkIssues/TrackerWin/issues/571) and so I decided to build a fast & simple terminal tool myself to copy the fork features i am using the most.
2020-03-18 02:23:06 +03:00
2020-03-20 04:12:19 +03:00
## installation
2020-03-20 12:37:35 +03:00
For the time being this product is considered alpha and not production ready, therefore I do not distribute binary versions yet, however feel free to build `gitui` and let me know what you think!
### requirements
install `rust`/`cargo`: https://www.rust-lang.org/tools/install
### build from source
2020-03-20 04:12:19 +03:00
the simplest way to start playing around with `gitui` is to have `cargo` install it locally:
```
cargo install --path "."
```
after that you can go to your git repo and run it:
```
gitui
```
2020-03-16 19:20:28 +03:00
# todo
2020-03-18 19:43:40 +03:00
* [x] (un)stage files
2020-03-18 13:34:16 +03:00
* [x] inspect diffs
* [x] commit
2020-03-19 15:19:18 +03:00
* [x] [input polling in thread](assets/perf_compare.jpg)
* [ ] put libgit calls in threadpool
* [ ] show content of new unstaged files
2020-03-19 16:22:15 +03:00
* [ ] discard untracked files (remove)
2020-03-19 23:56:59 +03:00
* [ ] (un)staging selected hunks
2020-03-16 20:25:53 +03:00
2020-03-18 02:58:31 +03:00
# resources (quick links)
2020-03-16 20:25:53 +03:00
2020-03-18 02:23:06 +03:00
* https://docs.rs/git2/
2020-03-16 20:25:53 +03:00
* https://libgit2.org
2020-03-18 02:23:06 +03:00
* https://docs.rs/tui/
2020-03-18 02:58:31 +03:00
* https://docs.rs/crossterm/
# alternatives
2020-03-18 03:01:38 +03:00
* https://github.com/jesseduffield/lazygit