Ignored files section is very slow (in git repo with GIT_DIR/GIT_WORKTREE) #4750
-
See #460 for context on the situation - I'm using a dotfiles manager (yadm) that sets up its git repo in one directory and uses $HOME as the work tree. Magit doesn't adequately support this situation, but that discussion is already in #460. I use magit-status through a tramp session that intercepts calls to git and handles things correctly: (add-to-list 'tramp-methods
'("yadm"
(tramp-login-program "yadm")
(tramp-login-args (("enter")))
(tramp-remote-shell "/bin/bash")
(tramp-remote-shell-args ("-c"))))
(defun yadm-status ()
(interactive)
(require 'tramp)
(with-current-buffer (magit-status "/yadm::"))) Anyway, my ignored files section is very slow. I have tried to use How can I fix this? Alternatively (additionally) - it would be nice to tell magit -- if this section gets longer than X, turn it off. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Note sure, but this sounds like you might followed the instructions for
I don't think that's currently feasible. We would end up switching from taking too long to display that section to taking just as long to decide that it takes too long to display and then not even displaying the costly result. |
Beta Was this translation helpful? Give feedback.
-
Did you get it working? Is this how your dir-locals.el looks like? Another thing I noticed that having
|
Beta Was this translation helpful? Give feedback.
Note sure, but this sounds like you might followed the instructions for
.gitconfig
when deciding where to place.dir-locals.el
. That file should go to/path/to/repo/.dir-locals.el
. First try to get it working on your local machine, if it works there but not over tramp, then it likely is a tramp issue (and tramp's documentation might be of help). I understand this involves symlinks, maybe Emacs doesn't follow the relevant links for some reason, and maybe that can be configured. Try with some simple local setting first, e.g., enablehl-line-mode
.I don…