最新版magit-blame不显示commit id,只显示提交者,时间和message信息,有人知道怎么设置显示commit-id信息吗
可以看一下 magit-blame–style / magit-blame-styles 的定义 %H 表示hash
The following %-specs can be used in
heading-format' and
margin-format’:
%H hash using face `magit-blame-hash’
%s summary using face `magit-blame-summary’
%a author using face `magit-blame-name’
%A author time using face `magit-blame-date’
%c committer using face `magit-blame-name’
%C committer time using face `magit-blame-date’
(add-hook 'magit-blame-mode-hook
(lambda ()
(setq magit-blame--style '(headings (heading-format . "%H %-20a %C %s\n")))))
1 个赞
确实是这个,多谢了
M-x magit-blame
然后按c切换style,不过我比较喜欢default的,一定需要用commit id 的话我是用git-messenger,不过我真的没遇到有这样的需求,可以参考我这段配置 spacemacs-config/packages.el at master · ztlevi/spacemacs-config · GitHub
1 个赞