Variable: treemacs-git-command-pipe

treemacs-git-command-pipe is a customizable variable defined in treemacs-customization.el.

Value

""

Documentation

Text to be appended to treemacs' git command.

With treemacs-git-mode(var)/treemacs-git-mode(fun) the command git status --porcelain --ignored=matching . is run to fetch a directory's git information. The content of this variable will be appended to this git command. This might be useful in cases when the output produced by git is so large that it leads to palpable delays, while setting treemacs-max-git-entries leads to loss of information. In such a scenario an additional filter statement (for example | grep -v "/vendor_dir/") can be used to reduce the size of the output to a manageable volume for treemacs.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-customization.el
(defcustom treemacs-git-command-pipe ""
  "Text to be appended to treemacs' git command.
With `treemacs-git-mode' the command
`git status --porcelain --ignored=matching .' is run to fetch a directory's git
information.  The content of this variable will be appended to this git command.
This might be useful in cases when the output produced by git is so large that
it leads to palpable delays, while setting `treemacs-max-git-entries' leads to
loss of information.  In such a scenario an additional filter statement (for
example `| grep -v \"/vendor_dir/\"') can be used to reduce the size of the
output to a manageable volume for treemacs."
  :type 'string
  :group 'treemacs-git)