Display git information inside a dired buffer:
This started as a fork of Clemera’s https://github.com/clemera/dired-git-log, because I needed a version without overlayes, that works with my dired-auto-readme and mode dired-hacks. It is now totally reworked to use text properties as well as how it works internally. I would also like to turn it into async (non-blocking) version, but it is not implemented yet.
This is not yet in either Elpa nor Melpa, so currently you will have to install it manually.
For manual installation, clone the repository and call:
(package-install-file "/path/to/dired-git-log.el")
(with-eval-after-load 'dired
(define-key dired-mode-map ")" 'dired-git-log-mode))
By default, toggling dired-git-log-mode
also toggles the built-in
dired-hide-details-mode
, which hides file details such as ownership,
permissions and size. This behaviour can be disabled by overriding
dgi-auto-hide-details-p
:
(setq dired-git-log-auto-hide-details-p nil)
To enable dired-git-info-mode
whenever you navigate to a Git repository, use
the following:
(add-hook 'dired-after-readin-hook 'dired-git-log-auto-enable)
GPL v3. For details, see the attached license file.