Created
January 9, 2023 13:29
-
-
Save dzzzchhh/14c67224340a9f469bfb5bdcfefe45a4 to your computer and use it in GitHub Desktop.
quickly list file authors for the current buffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dzch/list-file-authors () | |
(interactive) | |
(let* ((path buffer-file-name) | |
(cmd "git log --pretty=format:%s %s | sort -r | uniq -c | sort -r") | |
(result (shell-command-to-string (format cmd "%ae" path)))) | |
(display-message-or-buffer result))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment