gia is a tool for interactive hunk staging.
Preview
Install
go get github.com/isacikgoz/gia
Program Arguments
usage: gia [<file>] [<args>] Flags: -h, --help Show help. -v, --version Show application version. Args: -- Default mode, used on unstaged files. --no-index Used on untracked files. --cached Used on staged files.
Controls
- ↓, j: Cursor down
- ↑, k: Cursor up
- n: Next hunk
- N: Previous hunk
- g: Go to top
- G: Go to bottom
- space: Stage/Unstage
- q: Quit
- c: Open controls
Adding To Your Own App
See main.go for usage. Also, feel free to open PR's.
