https://github.com/ennocramer/differential
Console viewer for unified diffs, useful to review code changes before a commit.
https://github.com/ennocramer/differential
Last synced: 9 months ago
JSON representation
Console viewer for unified diffs, useful to review code changes before a commit.
- Host: GitHub
- URL: https://github.com/ennocramer/differential
- Owner: ennocramer
- License: gpl-3.0
- Created: 2019-02-01T19:40:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T11:20:19.000Z (over 7 years ago)
- Last Synced: 2025-07-19T16:41:35.442Z (12 months ago)
- Language: Haskell
- Size: 68.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# differential
Differential is a command-line viewer for unified diffs, written in Haskell.
## Usage
The following key bindings are available
Key | Action
-----|-------
TAB | Switch focus between file list and diff (for control with arrow and page keys)
n | Show next file diff
p | Show previous file diff
d | Move to the next line in diff
u | Move to the previous line in diff
SPC | Move down one page in diff
b | Move up one page in diff
DOWN | Same as either n or d
UP | Same as either p or u
q | Terminate the application
## Limitations
The diff cannot be read from stdin. If you try to pipe to differential, you will see the following error message:
differential: getTerminalAttributes: invalid argument (Bad file descriptor)
Use file names or shell redirects instead:
```sh
> differential random.patch
> differential <(hg diff)
```