12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- (require 'magit-diff)
- (require 'git-commit)
- (require 'al-buffer)
- (defun al/magit-switch-buffer ()
- "Switch to a magit status buffer preferably using `ivy-read'."
- (interactive)
- (al/switch-buffer "Magit buffer: "
- :initial-input "*magit: "))
- (defun al/git-commit-co-authored (name mail)
- "Insert a header acknowledging that you have co-authored the commit."
- (interactive (git-commit-self-ident))
- (git-commit-insert-header "Co-authored-by" name mail))
- (defun al/magit-show-commit (commit)
- "Like `magit-show-commit' but always prompt for COMMIT."
- (interactive (list (magit-read-branch-or-commit "Show commit")))
- (magit-show-commit commit))
- (provide 'al-magit)
|