ELPA Logo GNU-devel ELPA: diff-hl

diff-hl Atom Feed

Description
Highlight uncommitted changes using VC
Latest
diff-hl-1.10.0.0.20260830.0.tar (.sig), 2026-Sep-04, 210 KiB
Maintainer
Dmitry Gutov <dmitry@gutov.dev>
Other versions:
release version
Website
https://github.com/dgutov/diff-hl
ELPA's Repository
CGit or Gitweb
All Dependencies
cl-lib (.tar)
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

`diff-hl-mode' highlights uncommitted changes on the side of the
window (using the fringe, by default), allows you to jump between
the hunks and revert them selectively.

Provided commands:

`diff-hl-diff-goto-hunk'  C-x v =
`diff-hl-revert-hunk'     C-x v n
`diff-hl-previous-hunk'   C-x v [
`diff-hl-next-hunk'       C-x v ]
`diff-hl-show-hunk'       C-x v *
`diff-hl-stage-current-hunk' C-x v S
`diff-hl-set-reference-rev'
`diff-hl-reset-reference-rev'
`diff-hl-unstage-file'

The mode takes advantage of `smartrep' if it is installed.

Alternatively, it integrates with `repeat-mode' (Emacs 28+).

Add either of the following to your init file.

To use it in all buffers:

(global-diff-hl-mode)

Only in `prog-mode' buffers, with `vc-dir' integration:

(add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
(add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode)

Old versions

diff-hl-1.10.0.0.20260828.0.tar.lz2026-Aug-2940.5 KiB
diff-hl-1.10.0.0.20260811.192.tar.lz2026-Aug-1640.5 KiB