Variable: treemacs-git-commit-diff-mode-hook
treemacs-git-commit-diff-mode-hook is a customizable variable defined
in treemacs-git-commit-diff-mode.el.
Value
nil
Documentation
Hook run after entering or leaving treemacs-git-commit-diff-mode(var)/treemacs-git-commit-diff-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-git-commit-diff-mode.el
;;;###autoload
(define-minor-mode treemacs-git-commit-diff-mode
"Minor mode to display commit differences for your git-tracked projects.
When enabled treemacs will add an annotation next to every git project showing
how many commits ahead or behind your current branch is compared to its remote
counterpart.
The difference will be shown using the format `↑x ↓y', where `x' and `y' are the
numbers of commits a project is ahead or behind. The numbers are determined
based on the output of `git status -sb'.
By default the annotation is only updated when manually updating a project with
`treemacs-refresh'. You can install `treemacs-magit' to enable automatic
updates whenever you commit/fetch/rebase etc. in magit.
Does not require `treemacs-git-mode' to be active."
:init-value nil
:global t
:lighter nil
:group 'treemacs
(if treemacs-git-commit-diff-mode
(treemacs--enable-git-commit-diff-mode)
(treemacs--disable-git-commit-diff-mode)))