内置的project.el,对于git的仓库,直接用vc-git的命令,没有经过shell,emacs-Q的情况下,C-x p f正常显示中文。
(defun projectile-get-ext-command (vcs)
"Determine which external command to invoke based on the project's VCS.
Fallback to a generic command when not in a VCS-controlled project."
(pcase vcs
('git projectile-git-command)
('hg projectile-hg-command)
('fossil projectile-fossil-command)
('bzr projectile-bzr-command)
('darcs projectile-darcs-command)
('pijul projectile-pijul-command)
('svn projectile-svn-command)
(_ projectile-generic-command)))
(defun projectile-get-ext-command (vcs)
"Determine which external command to invoke based on the project's VCS.
Fallback to a generic command when not in a VCS-controlled project."
(pcase vcs
('git projectile-git-command)
('hg projectile-hg-command)
('fossil projectile-fossil-command)
('bzr projectile-bzr-command)
('darcs projectile-darcs-command)
('pijul projectile-pijul-command)
('svn projectile-svn-command)
(_ projectile-generic-command)))